aboutsummaryrefslogtreecommitdiffstats
path: root/x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11.c')
-rw-r--r--x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11.c b/x11.c
index 720de14..fc5c437 100644
--- a/x11.c
+++ b/x11.c
@@ -89,7 +89,7 @@ x11_init(Display *dpy)
fprintf(stderr,"x11: display: %d bits, %d bytes - pixmap: %d bytes\n",
display_bits,display_bytes,pixmap_bytes);
if (info->class == TrueColor) {
- switch (display_bytes) {
+ switch (pixmap_bytes /* display_bytes */) {
case 2:
format = (display_bits==15) ? VIDEO_RGB15 : VIDEO_RGB16;
break;

Privacy Policy