qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Phil Dennis-Jordan
Subject: [PATCH 26/26] hw/display/apple-gfx: Removes UI pointer support check
Date: Mon, 15 Jul 2024 23:07:05 +0200

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 --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)
-- 
2.39.3 (Apple Git-146)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]