mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
console: rework DisplaySurface handling [dcl/ui side]
Replace the dpy_gfx_resize and dpy_gfx_setdata DisplayChangeListener callbacks with a dpy_gfx_switch callback which notifies the ui code when the framebuffer backing storage changes. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
da229ef3b3
commit
c12aeb860c
9 changed files with 43 additions and 55 deletions
|
@ -156,10 +156,9 @@ typedef struct DisplayChangeListenerOps {
|
|||
void (*dpy_gfx_update)(DisplayChangeListener *dcl,
|
||||
struct DisplayState *s,
|
||||
int x, int y, int w, int h);
|
||||
void (*dpy_gfx_resize)(DisplayChangeListener *dcl,
|
||||
struct DisplayState *s);
|
||||
void (*dpy_gfx_setdata)(DisplayChangeListener *dcl,
|
||||
struct DisplayState *s);
|
||||
void (*dpy_gfx_switch)(DisplayChangeListener *dcl,
|
||||
struct DisplayState *s,
|
||||
struct DisplaySurface *new_surface);
|
||||
void (*dpy_gfx_copy)(DisplayChangeListener *dcl,
|
||||
struct DisplayState *s, int src_x, int src_y,
|
||||
int dst_x, int dst_y, int w, int h);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue