chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Notice and explicitly fail of display is <24bpp
[ypp-sc-tools.web-live.git]
/
pctb
/
pages.c
diff --git
a/pctb/pages.c
b/pctb/pages.c
index f9ca6e05409874b37a3b0b27e38f852d396a9e99..fcee3d5845eaae1c47f97aa2d965bf623b820ca0 100644
(file)
--- 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;