aboutsummaryrefslogtreecommitdiffstats
path: root/x11.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:35 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:35 +0200
commite258bb27135e755ea57c6d1e83e298d640913fc1 (patch)
tree0ae705962f55de0a13318168a6589c14d6f408e5 /x11.c
parentbb218f6ab257e1ced214fcc815a2357313ac1e38 (diff)
v2.14
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