Skip to content

Commit d07da11

Browse files
committed
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 <[email protected]>
1 parent 0b198db commit d07da11

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/screen.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,9 @@ void twin_screen_update(twin_screen_t *screen)
216216
}
217217

218218
#if defined(CONFIG_CURSOR)
219-
if (screen->cursor) {
220-
/* Skip drawing the region of the iconified pixmap. */
221-
if (!twin_pixmap_is_iconified(p, y))
222-
twin_screen_span_pixmap(screen, span, screen->cursor, y,
223-
left, right, pop16, pop32);
224-
}
219+
if (screen->cursor)
220+
twin_screen_span_pixmap(screen, span, screen->cursor, y, left,
221+
right, pop16, pop32);
225222
#endif
226223

227224
(*screen->put_span)(left, y, right, span, screen->closure);

0 commit comments

Comments
 (0)