]> git.proxmox.com Git - qemu.git/commit
Use corect depth from DisplaySurface in vmware_vga.c
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 23 Aug 2009 16:00:33 +0000 (18:00 +0200)
committerAndrzej Zaborowski <balrog@zabor.org>
Sun, 23 Aug 2009 16:00:33 +0000 (18:00 +0200)
commitc00a9de060124a988bd9847c095e5836488c6f01
tree28afa2671b61024ac01b978e3304bdece8b06ab8
parent13f59cbfe37834d7a00145435405af40a1237514
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.
hw/vmware_vga.c