diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-18 08:08:09 +1000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-18 11:26:32 -0600 |
commit | a6109ff1b5d7184a9d490c4ff94f175940232ebd (patch) | |
tree | 6645d11e5d3507bc8a891df8d755c9af70cd6b0a /migration-tcp.c | |
parent | ee3e41a9a0194af21d0da75f5afd87bea3738cf3 (diff) |
Fix VMware VGA depth computation
VMware VGA requires that the depth presented to the guest is the same as the
DisplaySurface that it renders to. This is because it performs a very simple
memcpy() to blit from one surface to another.
We currently hardcode a 24-bit depth. The surface allocator for SDL may, and
usually will, allocate a surface with a different depth causing screen
corruption.
This changes the code to allocate the DisplaySurface before initializing the
device which allows the depth of the DisplaySurface to be used instead of
hardcoding something.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration-tcp.c')
0 files changed, 0 insertions, 0 deletions