mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Fix crash on resolution change -> screen dump -> vga redraw (Avi Kivity)
The vga screen dump function updates last_width and last_height, but does not change the DisplaySurface that these variables describe. A consequent vga_draw_graphic() will therefore fail to resize the surface and crash. Fix by invalidating the display state after a screen dump, forcing vga_draw_graphic() to reallocate the DisplaySurface. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7026 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
799e709b43
commit
9d1b494a2d
1 changed files with 1 additions and 0 deletions
1
hw/vga.c
1
hw/vga.c
|
@ -2678,4 +2678,5 @@ static void vga_screen_dump(void *opaque, const char *filename)
|
|||
vga_screen_dump_graphic(s, filename);
|
||||
else
|
||||
vga_screen_dump_text(s, filename);
|
||||
vga_invalidate_display(s);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue