Fix vga screendump
commit588e917161fa1fed97712a5094d600afcf86f652
authorAvi Kivity <avi@qumranet.com>
Thu, 10 Jul 2008 12:48:15 +0000 (10 15:48 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 10 Jul 2008 13:06:20 +0000 (10 16:06 +0300)
tree13754dc14fe946f205df1e9080e6b0209e0c6fd3
parent9c2e8d239627662b3e0f2e7c5ea7ba2877101426
Fix vga screendump

Commit 737d2050 ("Implement resolution switching in common console code")
uses qemu_console_resize() instead of dpy_resize().  This means console->ds
is examined instead of the VGA private ds, and the resize does not take place,
leading to a segfault.

Fix by modifying the DisplayState directly rather than swapping the pointer.

Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/vga.c