diff mbox series

[26/26] hw/display/apple-gfx: Removes UI pointer support check

Message ID 20240715210705.32365-27-phil@philjordan.eu (mailing list archive)
State New, archived
Headers show
Series [01/26] hw/vmapple/apple-gfx: Introduce ParavirtualizedGraphics.Framework support | expand

Commit Message

Phil Dennis-Jordan July 15, 2024, 9:07 p.m. UTC
The dpy_cursor_define_supported() check is destined for removal
when the last UI frontend without cursor support (cocoa) gains
cursor integration. This patch is required to reconcile with
that change.

Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
---
 hw/display/apple-gfx.m | 24 ------------------------
 1 file changed, 24 deletions(-)
diff mbox series

Patch

diff --git a/hw/display/apple-gfx.m b/hw/display/apple-gfx.m
index e0ad784022..a4789be275 100644
--- a/hw/display/apple-gfx.m
+++ b/hw/display/apple-gfx.m
@@ -175,25 +175,6 @@  static void apple_gfx_render_frame_completed(AppleGFXState *s, void *vram,
         g_free(vram);
     } else {
         copy_mtl_texture_to_surface_mem(texture, vram);
-
-        /* Need to render cursor manually if not supported by backend */
-        if (!dpy_cursor_define_supported(s->con) && s->cursor && s->cursor_show) {
-            pixman_image_t *image =
-                pixman_image_create_bits(PIXMAN_a8r8g8b8,
-                                         s->cursor->width,
-                                         s->cursor->height,
-                                         (uint32_t *)s->cursor->data,
-                                         s->cursor->width * 4);
-
-            pixman_image_composite(PIXMAN_OP_OVER,
-                                   image, NULL, s->surface->image,
-                                   0, 0, 0, 0, s->pgdisp.cursorPosition.x,
-                                   s->pgdisp.cursorPosition.y, s->cursor->width,
-                                   s->cursor->height);
-
-            pixman_image_unref(image);
-        }
-
         if (s->gfx_update_requested) {
             s->gfx_update_requested = false;
             dpy_gfx_update_full(s->con);
@@ -234,11 +215,6 @@  static void update_cursor(AppleGFXState *s)
 {
     dpy_mouse_set(s->con, s->pgdisp.cursorPosition.x,
                   s->pgdisp.cursorPosition.y, s->cursor_show);
-
-    /* Need to render manually if cursor is not natively supported */
-    if (!dpy_cursor_define_supported(s->con)) {
-        s->new_frame = true;
-    }
 }
 
 static void set_mode(AppleGFXState *s, uint32_t width, uint32_t height)