From 484d91c2071d36318c2abf4bd542bc5e33151517 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 28 Apr 2020 17:23:37 +0000 Subject: [PATCH] Erase cursor for getpixels() --- src/conio/bitmap_con.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index 0b33054777..8e72f19914 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -1426,8 +1426,10 @@ struct ciolib_pixels *bitmap_getpixels(uint32_t sx, uint32_t sy, uint32_t ex, ui return NULL; } + bitmap_draw_one_char(vstat.curs_col, vstat.curs_row); for (y = sy; y <= ey; y++) memcpy(&pixels->pixels[width*(y-sy)], &screen.screen[PIXEL_OFFSET(screen, sx, y)], width * sizeof(pixels->pixels[0])); + bitmap_draw_one_char_cursor(vstat.curs_col, vstat.curs_row); pthread_mutex_unlock(&screen.screenlock); pthread_mutex_unlock(&blinker_lock); -- GitLab