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:
parent
4d52a42e07
commit
f6448cb440
1 changed files with 8 additions and 2 deletions
|
|
@ -1307,7 +1307,8 @@ static void rb_start_draw(void *handle)
|
||||||
static void rb_end_draw(void *handle)
|
static void rb_end_draw(void *handle)
|
||||||
{
|
{
|
||||||
(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 0
|
||||||
if(!zoom_enabled)
|
if(!zoom_enabled)
|
||||||
{
|
{
|
||||||
|
|
@ -1543,7 +1544,12 @@ static int choose_key(void)
|
||||||
if(timer_on)
|
if(timer_on)
|
||||||
timer_cb();
|
timer_cb();
|
||||||
midend_process_key(me, 0, 0, game_keys[sel].button);
|
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->lcd_update();
|
||||||
rb->yield();
|
rb->yield();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue