From f6448cb44053d1fccbb614a1bd674c912026008f Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Thu, 25 Jun 2020 18:00:52 -0400 Subject: puzzles: fix numerical chooser while zoomed in We need to blit the zoom framebuffer to the screen in our chooser loop. Change-Id: Id2ba1a79b61f14cc34ca9804486f69a2b32484ff --- apps/plugins/puzzles/rockbox.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c index cf0c6cc21b..74d037f6c5 100644 --- a/apps/plugins/puzzles/rockbox.c +++ b/apps/plugins/puzzles/rockbox.c @@ -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(); -- cgit v1.2.3