diff options
author | Franklin Wei <franklin@rockbox.org> | 2020-06-25 18:00:52 -0400 |
---|---|---|
committer | Franklin Wei <franklin@rockbox.org> | 2020-06-25 18:00:52 -0400 |
commit | f6448cb44053d1fccbb614a1bd674c912026008f (patch) | |
tree | 03e10b5480b55a84d9758a647d8e0e1936c3a796 /apps/plugins/puzzles/rockbox.c | |
parent | 4d52a42e079087f211ba0ff22b749b6b07f17459 (diff) | |
download | rockbox-f6448cb44053d1fccbb614a1bd674c912026008f.tar.gz rockbox-f6448cb44053d1fccbb614a1bd674c912026008f.zip |
puzzles: fix numerical chooser while zoomed in
We need to blit the zoom framebuffer to the screen in our chooser loop.
Change-Id: Id2ba1a79b61f14cc34ca9804486f69a2b32484ff
Diffstat (limited to 'apps/plugins/puzzles/rockbox.c')
-rw-r--r-- | apps/plugins/puzzles/rockbox.c | 10 |
1 files changed, 8 insertions, 2 deletions
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) | |||
1307 | static void rb_end_draw(void *handle) | 1307 | static void rb_end_draw(void *handle) |
1308 | { | 1308 | { |
1309 | (void) handle; | 1309 | (void) handle; |
1310 | /* we ignore the backend's redraw requests and just unconditionally update everything */ | 1310 | /* we ignore the backend's redraw requests and just |
1311 | * unconditionally update everything */ | ||
1311 | #if 0 | 1312 | #if 0 |
1312 | if(!zoom_enabled) | 1313 | if(!zoom_enabled) |
1313 | { | 1314 | { |
@@ -1543,7 +1544,12 @@ static int choose_key(void) | |||
1543 | if(timer_on) | 1544 | if(timer_on) |
1544 | timer_cb(); | 1545 | timer_cb(); |
1545 | midend_process_key(me, 0, 0, game_keys[sel].button); | 1546 | midend_process_key(me, 0, 0, game_keys[sel].button); |
1546 | midend_redraw(me); | 1547 | midend_force_redraw(me); |
1548 | |||
1549 | if(zoom_enabled) | ||
1550 | rb->lcd_bitmap_part(zoom_fb, zoom_x, zoom_y, STRIDE(SCREEN_MAIN, zoom_w, zoom_h), | ||
1551 | 0, 0, LCD_WIDTH, LCD_HEIGHT); | ||
1552 | |||
1547 | rb->lcd_update(); | 1553 | rb->lcd_update(); |
1548 | rb->yield(); | 1554 | rb->yield(); |
1549 | 1555 | ||