[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)
- [PATCH 13/26] hw/display/apple-gfx: Defines PGTask_s struct instead of casting, (continued)
[PATCH 11/26] hw/display/apple-gfx: Uses ObjC category extension for private property, Phil Dennis-Jordan, 2024/07/17
[PATCH 15/26] hw/display/apple-gfx: Separates generic & vmapple-specific functionality, Phil Dennis-Jordan, 2024/07/17
[PATCH 19/26] ui/cocoa: Adds non-app runloop on main thread mode, Phil Dennis-Jordan, 2024/07/17
[PATCH 12/26] hw/display/apple-gfx: Task memory mapping cleanup, Phil Dennis-Jordan, 2024/07/17
[PATCH 26/26] hw/display/apple-gfx: Removes UI pointer support check,
Phil Dennis-Jordan <=
[PATCH 03/26] hw/display/apple-gfx: Moved from hw/vmapple/, Phil Dennis-Jordan, 2024/07/17
[PATCH 18/26] hw/display/apple-gfx: Adds PCI implementation, Phil Dennis-Jordan, 2024/07/17
[PATCH 22/26] hw/display/apple-gfx: Replaces magic number with queried MMIO length, Phil Dennis-Jordan, 2024/07/17
[PATCH 14/26] hw/display/apple-gfx: Refactoring of realize function, Phil Dennis-Jordan, 2024/07/17