From: Keir Fraser Date: Tue, 25 Mar 2008 10:24:26 +0000 (+0000) Subject: ioemu: fix VNC case when switching from 32bpp to 24bpp X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14240^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=06a7e3fd4bd5e7b3b49c492e8a1dd6fd1bc6018b;p=xen.git ioemu: fix VNC case when switching from 32bpp to 24bpp Even 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. Signed-off-by: Samuel Thibault --- diff --git a/tools/ioemu/vnc.c b/tools/ioemu/vnc.c index 9c9cbb3fc0..6cfba55be9 100644 --- a/tools/ioemu/vnc.c +++ b/tools/ioemu/vnc.c @@ -1636,8 +1636,8 @@ static void vnc_dpy_colourdepth(DisplayState *ds, int depth) switch (depth) { case 24: - if (ds->depth == 32) return; ds->shared_buf = 0; + if (ds->depth == 32) return; depth = 32; break; case 0: