Use corect depth from DisplaySurface in vmware_vga.c
commitd2bb9964d1c52ff73e75f7c081f631bf5effda08
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 23 Aug 2009 16:00:33 +0000 (23 18:00 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 02:23:38 +0000 (27 21:23 -0500)
treefe5e0d5ec4abdab60433e552a13a8ec2122faeb9
parent1960cacfeb2ba02b794ac4c6d80d77203068be85
Use corect depth from DisplaySurface in vmware_vga.c

Hello,
for what I can tell, there is no way for vmware_vga to work correctly
right now. It assumes that the framebuffer bits-per-pixel and the one
from the DisplaySurface are identical (it uses directly the VRAM from
vga.c), but it always assumes 3 bytes per pixel, which is never possible
with the current version of DisplaySurface.
Attached patch fixes that by using ds_get_bits_per_pixel.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vmware_vga.c