X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=blobdiff_plain;f=pctb%2Fpages.c;fp=pctb%2Fpages.c;h=fcee3d5845eaae1c47f97aa2d965bf623b820ca0;hp=f9ca6e05409874b37a3b0b27e38f852d396a9e99;hb=309781e46dba727aed5fa6fe725da2d60d368057;hpb=124bfe502b5841d6d05f3f7e9fc825f918d3109d 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;