mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
console/opengl: split up dpy_gl_cursor ops
Split the cursor callback into two, one for setting the dmabuf, one for setting the position. Also add hotspot information. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180220110433.20353-2-kraxel@redhat.com
This commit is contained in:
@@ -230,8 +230,10 @@ typedef struct DisplayChangeListenerOps {
|
||||
void (*dpy_gl_scanout_dmabuf)(DisplayChangeListener *dcl,
|
||||
QemuDmaBuf *dmabuf);
|
||||
void (*dpy_gl_cursor_dmabuf)(DisplayChangeListener *dcl,
|
||||
QemuDmaBuf *dmabuf,
|
||||
uint32_t pos_x, uint32_t pos_y);
|
||||
QemuDmaBuf *dmabuf, bool have_hot,
|
||||
uint32_t hot_x, uint32_t hot_y);
|
||||
void (*dpy_gl_cursor_position)(DisplayChangeListener *dcl,
|
||||
uint32_t pos_x, uint32_t pos_y);
|
||||
void (*dpy_gl_release_dmabuf)(DisplayChangeListener *dcl,
|
||||
QemuDmaBuf *dmabuf);
|
||||
void (*dpy_gl_update)(DisplayChangeListener *dcl,
|
||||
@@ -304,9 +306,10 @@ void dpy_gl_scanout_texture(QemuConsole *con,
|
||||
uint32_t x, uint32_t y, uint32_t w, uint32_t h);
|
||||
void dpy_gl_scanout_dmabuf(QemuConsole *con,
|
||||
QemuDmaBuf *dmabuf);
|
||||
void dpy_gl_cursor_dmabuf(QemuConsole *con,
|
||||
QemuDmaBuf *dmabuf,
|
||||
uint32_t pos_x, uint32_t pos_y);
|
||||
void dpy_gl_cursor_dmabuf(QemuConsole *con, QemuDmaBuf *dmabuf,
|
||||
bool have_hot, uint32_t hot_x, uint32_t hot_y);
|
||||
void dpy_gl_cursor_position(QemuConsole *con,
|
||||
uint32_t pos_x, uint32_t pos_y);
|
||||
void dpy_gl_release_dmabuf(QemuConsole *con,
|
||||
QemuDmaBuf *dmabuf);
|
||||
void dpy_gl_update(QemuConsole *con,
|
||||
|
||||
Reference in New Issue
Block a user