From 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 12 Mar 2013 14:48:31 +0100 Subject: console: simplify screendump Screendumps are alot simpler as we can update non-active QemuConsoles now. So we only need to update the QemuConsole we want write out, then dump the DisplaySurface content into a ppm file. Done. No console switching needed. No special support code in the gfx card emulation needed. Zap it all. Also move ppm_save out of the vga code and next to the qmp_screendump function. For now screen dumping is limited to console #0 (like it used to be), even though it is dead simple to extend it to other consoles. I wanna finish the console cleanup before setting new qapi interfaces into stone. Signed-off-by: Gerd Hoffmann Tested-by: Igor Mitsyanko --- hw/display/vga-isa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/display/vga-isa.c') diff --git a/hw/display/vga-isa.c b/hw/display/vga-isa.c index 90959ebc2c..228657e6b8 100644 --- a/hw/display/vga-isa.c +++ b/hw/display/vga-isa.c @@ -63,7 +63,7 @@ static int vga_initfn(ISADevice *dev) vga_io_memory, 1); memory_region_set_coalescing(vga_io_memory); s->con = graphic_console_init(s->update, s->invalidate, - s->screen_dump, s->text_update, s); + s->text_update, s); vga_init_vbe(s, isa_address_space(dev)); /* ROM BIOS */ -- cgit 1.4.1