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
|
@ -583,7 +583,6 @@ static const QXLInterface dpy_interface = {
|
|||
};
|
||||
|
||||
static void display_update(DisplayChangeListener *dcl,
|
||||
struct DisplayState *ds,
|
||||
int x, int y, int w, int h)
|
||||
{
|
||||
SimpleSpiceDisplay *ssd = container_of(dcl, SimpleSpiceDisplay, dcl);
|
||||
|
@ -591,15 +590,13 @@ static void display_update(DisplayChangeListener *dcl,
|
|||
}
|
||||
|
||||
static void display_switch(DisplayChangeListener *dcl,
|
||||
struct DisplayState *ds,
|
||||
struct DisplaySurface *surface)
|
||||
{
|
||||
SimpleSpiceDisplay *ssd = container_of(dcl, SimpleSpiceDisplay, dcl);
|
||||
qemu_spice_display_switch(ssd, surface);
|
||||
}
|
||||
|
||||
static void display_refresh(DisplayChangeListener *dcl,
|
||||
struct DisplayState *ds)
|
||||
static void display_refresh(DisplayChangeListener *dcl)
|
||||
{
|
||||
SimpleSpiceDisplay *ssd = container_of(dcl, SimpleSpiceDisplay, dcl);
|
||||
qemu_spice_display_refresh(ssd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue