chiark / gitweb /
Notice and explicitly fail of display is <24bpp
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 5 Jul 2009 13:32:28 +0000 (14:32 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 5 Jul 2009 13:32:28 +0000 (14:32 +0100)
pctb/README
pctb/pages.c

index 59a3646591e7fa2f4f1e869c71302f87d8a76b2a..252a3a5a7ce29ad2e2947bcd1ddc357f4abe21ed 100644 (file)
@@ -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)
 
index f9ca6e05409874b37a3b0b27e38f852d396a9e99..fcee3d5845eaae1c47f97aa2d965bf623b820ca0 100644 (file)
@@ -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;