mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
console: zap displaystate from dcl callbacks
Now that nobody depends on DisplayState in DisplayChangeListener callbacks any more we can remove the parameter from all callbacks. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
5e00d3ac47
commit
bc2ed9704f
9 changed files with 23 additions and 56 deletions
6
ui/gtk.c
6
ui/gtk.c
|
@ -266,7 +266,7 @@ static void gd_update_full_redraw(GtkDisplayState *s)
|
|||
/** DisplayState Callbacks **/
|
||||
|
||||
static void gd_update(DisplayChangeListener *dcl,
|
||||
DisplayState *dontuse, int x, int y, int w, int h)
|
||||
int x, int y, int w, int h)
|
||||
{
|
||||
GtkDisplayState *s = container_of(dcl, GtkDisplayState, dcl);
|
||||
int x1, x2, y1, y2;
|
||||
|
@ -298,14 +298,12 @@ static void gd_update(DisplayChangeListener *dcl,
|
|||
gtk_widget_queue_draw_area(s->drawing_area, mx + x1, my + y1, (x2 - x1), (y2 - y1));
|
||||
}
|
||||
|
||||
static void gd_refresh(DisplayChangeListener *dcl,
|
||||
DisplayState *dontuse)
|
||||
static void gd_refresh(DisplayChangeListener *dcl)
|
||||
{
|
||||
vga_hw_update();
|
||||
}
|
||||
|
||||
static void gd_switch(DisplayChangeListener *dcl,
|
||||
DisplayState *dontuse,
|
||||
DisplaySurface *surface)
|
||||
{
|
||||
GtkDisplayState *s = container_of(dcl, GtkDisplayState, dcl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue