summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2020-06-25 18:00:52 -0400
committerFranklin Wei <franklin@rockbox.org>2020-06-25 18:00:52 -0400
commitf6448cb44053d1fccbb614a1bd674c912026008f (patch)
tree03e10b5480b55a84d9758a647d8e0e1936c3a796 /apps
parent4d52a42e079087f211ba0ff22b749b6b07f17459 (diff)
downloadrockbox-f6448cb44053d1fccbb614a1bd674c912026008f.tar.gz
rockbox-f6448cb44053d1fccbb614a1bd674c912026008f.tar.bz2
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')
-rw-r--r--apps/plugins/puzzles/rockbox.c10
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)
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();