Skip to content
Snippets Groups Projects
Commit 484d91c2 authored by deuce's avatar deuce
Browse files

Erase cursor for getpixels()

parent 5a786dec
No related branches found
No related tags found
No related merge requests found
...@@ -1426,8 +1426,10 @@ struct ciolib_pixels *bitmap_getpixels(uint32_t sx, uint32_t sy, uint32_t ex, ui ...@@ -1426,8 +1426,10 @@ struct ciolib_pixels *bitmap_getpixels(uint32_t sx, uint32_t sy, uint32_t ex, ui
return NULL; return NULL;
} }
bitmap_draw_one_char(vstat.curs_col, vstat.curs_row);
for (y = sy; y <= ey; y++) for (y = sy; y <= ey; y++)
memcpy(&pixels->pixels[width*(y-sy)], &screen.screen[PIXEL_OFFSET(screen, sx, y)], width * sizeof(pixels->pixels[0])); 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(&screen.screenlock);
pthread_mutex_unlock(&blinker_lock); pthread_mutex_unlock(&blinker_lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment