1
0
Fork 0
forked from len0rd/rockbox

puzzles: fix numerical chooser while zoomed in

We need to blit the zoom framebuffer to the screen in our chooser loop.

Change-Id: Id2ba1a79b61f14cc34ca9804486f69a2b32484ff
This commit is contained in:
Franklin Wei 2020-06-25 18:00:52 -04:00
parent 4d52a42e07
commit f6448cb440

View file

@ -1307,7 +1307,8 @@ static void rb_start_draw(void *handle)
static void rb_end_draw(void *handle)
{
(void) handle;
/* we ignore the backend's redraw requests and just unconditionally update everything */
/* we ignore the backend's redraw requests and just
* unconditionally update everything */
#if 0
if(!zoom_enabled)
{
@ -1543,7 +1544,12 @@ static int choose_key(void)
if(timer_on)
timer_cb();
midend_process_key(me, 0, 0, game_keys[sel].button);
midend_redraw(me);
midend_force_redraw(me);
if(zoom_enabled)
rb->lcd_bitmap_part(zoom_fb, zoom_x, zoom_y, STRIDE(SCREEN_MAIN, zoom_w, zoom_h),
0, 0, LCD_WIDTH, LCD_HEIGHT);
rb->lcd_update();
rb->yield();