vnc: fix server surface pixel format.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Apr 2009 14:39:51 +0000 (16:39 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 May 2009 14:44:10 +0000 (09:44 -0500)
commit89ee676eadde78677addb74ef8f356757f6f6c0a
tree3e69e62f1b03440eadda621e510c926bbe83a8b5
parent1063b8b15fb49fcf88ffa282b19aaaf7ca9c678c
vnc: fix server surface pixel format.

Format must be identical to the guest surface, we can't work with
the 32 bpp used by the default surface allocator.

Without this patch vnc doesn't get the conversions right when sending
pixel data to the client.  The bug triggers if
  (a) the client doesn't support WMVi, and
  (b) the guest screen depth is != 32 bpp.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc.c