/[qemu]
ViewVC logotype

Revision 6989


Jump to revision: Previous Next
Author: aliguori
Date: Sun Apr 5 18:41:18 2009 UTC (14 years, 7 months ago)
Changed paths: 3
Log Message:
Fix display breakage when resizing the screen (v2) (Avi Kivity)

When the vga resolution changes, a new display surface is not allocated
immediately; instead that is deferred until the next update.  However,
if we're running without a display client attached, that won't happen
and the next bitblt is likely to cause a segfault by overflowing the
display surface.

Fix by reallocating the display immediately when the resolution changes.

Tested with (Windows|Linux) x (cirrus|std) x (curses|sdl).

Changes from v1:
 - fix segfault when switching virtual consoles with curses

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Changed paths:

Path Details
Directorytrunk/hw/cirrus_vga.c modified , text changed
Directorytrunk/hw/vga.c modified , text changed
Directorytrunk/hw/vga_int.h modified , text changed

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5