aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdl.c2
-rw-r--r--vl.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index dce81e1205..ceb00ddf67 100644
--- a/sdl.c
+++ b/sdl.c
@@ -264,8 +264,8 @@ static void toggle_full_screen(DisplayState *ds)
if (!gui_saved_grab)
sdl_grab_end();
}
+ vga_invalidate_display();
vga_update_display();
- sdl_update(ds, 0, 0, screen->w, screen->h);
}
static void sdl_refresh(DisplayState *ds)
diff --git a/vl.h b/vl.h
index 50116e8f1e..dde4e5dfbd 100644
--- a/vl.h
+++ b/vl.h
@@ -542,6 +542,7 @@ int vga_initialize(DisplayState *ds, uint8_t *vga_ram_base,
unsigned long vga_ram_offset, int vga_ram_size,
int is_pci);
void vga_update_display(void);
+void vga_invalidate_display(void);
void vga_screen_dump(const char *filename);
/* cirrus_vga.c */