Skip to contentSkip to conversation

ioemu: fix VNC case when switching from 32bpp to 24bpp

PATCH New Samuel Thibault 1 participant 1 message Mar 21, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioemu: fix VNC case when switching from 32bpp to 24bpp

ioemu: fix VNC case when switching from 32bpp to 24bpp Event if we don't need to tell the client to redepth, we need to tell e.g. xenfb that we can't share the buffer any more.

tools/ioemu/vnc.c +1 -1
diff -r 87c17a6c540c tools/ioemu/vnc.c
@@ -1636,8 +1636,8 @@ static void vnc_dpy_colourdepth(DisplayS
 
     switch (depth) {
         case 24:
+            ds->shared_buf = 0;
             if (ds->depth == 32) return;
-            ds->shared_buf = 0;
             depth = 32;
             break;
         case 0: