make vga screen_dump use DisplayState properly
commita3798399a562172ae67f3eff600c1a2e556ed749
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 11 Aug 2009 15:18:07 +0000 (11 16:18 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 02:23:39 +0000 (27 21:23 -0500)
tree207c3376cf5987bc229721d64eef97fd6955f0fc
parent9f2f0bc6bc5189bae5d038819b6cd52fe57ce83d
make vga screen_dump use DisplayState properly

Hi all,
currently the vga screen_dump code doesn't use the DisplayState
interface properly and tries to replace it temporarily while taking the
screenshot.
A better approach is to register a DisplayChangeListener, call
vga_hw_update, and finally write the ppm in the next call from dpy_update.

Testing is appreciated.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vga.c