From 309781e46dba727aed5fa6fe725da2d60d368057 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 5 Jul 2009 14:32:28 +0100 Subject: [PATCH] Notice and explicitly fail of display is <24bpp --- pctb/README | 2 ++ pctb/pages.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/pctb/README b/pctb/README index 59a3646..252a3a5 100644 --- a/pctb/README +++ b/pctb/README @@ -64,6 +64,8 @@ Or set the environment variables YPPSC_PCTB{_PCTB, _DICT_UPDATE, _DICT_SUBMIT} Installation requirements ------------------------- +Your X server must be 24bpp (or better). + This program has quite a few dependencies: Package (Debian etch) diff --git a/pctb/pages.c b/pctb/pages.c index f9ca6e0..fcee3d5 100644 --- a/pctb/pages.c +++ b/pctb/pages.c @@ -412,6 +412,9 @@ static void raise_and_get_details(void) { if (!(wwidth >= 320 && wheight >= 320)) fatal("YPP client window is implausibly small?"); + if (attr.depth < 24) + fatal("Display is not 24bpp."); + check_client_window_all_on_screen(); Bool shmpixmaps=0; -- 2.30.2