summaryrefslogtreecommitdiffstats
path: root/hw/display/vga-isa-mm.c
diff options
context:
space:
mode:
authorGerd Hoffmann2013-03-12 14:48:31 +0100
committerGerd Hoffmann2013-04-16 09:03:48 +0200
commit2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 (patch)
tree7be759b610535361478fae83071cb9389c0a1d6c /hw/display/vga-isa-mm.c
parentconsole: give each QemuConsole its own DisplaySurface (diff)
downloadqemu-2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5.tar.gz
qemu-2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5.tar.xz
qemu-2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5.zip
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 <kraxel@redhat.com> Tested-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
Diffstat (limited to 'hw/display/vga-isa-mm.c')
-rw-r--r--hw/display/vga-isa-mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/vga-isa-mm.c b/hw/display/vga-isa-mm.c
index 1c50070216..e177197f15 100644
--- a/hw/display/vga-isa-mm.c
+++ b/hw/display/vga-isa-mm.c
@@ -136,7 +136,7 @@ int isa_vga_mm_init(hwaddr vram_base,
vga_mm_init(s, vram_base, ctrl_base, it_shift, address_space);
s->vga.con = graphic_console_init(s->vga.update, s->vga.invalidate,
- s->vga.screen_dump, s->vga.text_update,
+ s->vga.text_update,
s);
vga_init_vbe(&s->vga, address_space);