mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
optimize screendump for the common non-switch case
switch console only if needed, also pass down whenever the console was switched or not because a displaysurface redraw is only needed in case the console was switched. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
1673510204
commit
45efb16124
9 changed files with 34 additions and 21 deletions
|
@ -289,7 +289,7 @@ static void g364fb_reset(G364State *s)
|
|||
g364fb_invalidate_display(s);
|
||||
}
|
||||
|
||||
static void g364fb_screen_dump(void *opaque, const char *filename)
|
||||
static void g364fb_screen_dump(void *opaque, const char *filename, bool cswitch)
|
||||
{
|
||||
G364State *s = opaque;
|
||||
int y, x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue