From: Ian Jackson Date: Sun, 5 Jul 2009 13:32:28 +0000 (+0100) Subject: Notice and explicitly fail of display is <24bpp X-Git-Tag: 1.9.2~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=309781e46dba727aed5fa6fe725da2d60d368057 Notice and explicitly fail of display is <24bpp --- 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;