From d07da111d90d87e6cdd310000e687723a422e4e6 Mon Sep 17 00:00:00 2001 From: Wei-Hsin Yeh Date: Thu, 26 Jun 2025 15:07:43 +0800 Subject: [PATCH] Remove iconified pixmap check when drawing cursor The cursor pixmap is always drawn if present. The check for whether it is iconified is unnecessary. Signed-off-by: Wei-Hsin Yeh --- src/screen.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/screen.c b/src/screen.c index 2154033..c02ea3f 100644 --- a/src/screen.c +++ b/src/screen.c @@ -216,12 +216,9 @@ void twin_screen_update(twin_screen_t *screen) } #if defined(CONFIG_CURSOR) - if (screen->cursor) { - /* Skip drawing the region of the iconified pixmap. */ - if (!twin_pixmap_is_iconified(p, y)) - twin_screen_span_pixmap(screen, span, screen->cursor, y, - left, right, pop16, pop32); - } + if (screen->cursor) + twin_screen_span_pixmap(screen, span, screen->cursor, y, left, + right, pop16, pop32); #endif (*screen->put_span)(left, y, right, span, screen->closure);