summaryrefslogtreecommitdiff
path: root/apps/recorder/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r--apps/recorder/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index f735afe84d..b211fad331 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -1009,7 +1009,7 @@ static void kbd_draw_buttons(struct keyboard_parameters *pm, struct screen *sc)
1009 int sc_w = sc->getwidth(), sc_h = sc->getheight(); 1009 int sc_w = sc->getwidth(), sc_h = sc->getheight();
1010 viewport_set_defaults(&vp, sc->screen_type); 1010 viewport_set_defaults(&vp, sc->screen_type);
1011 vp.flags |= VP_FLAG_ALIGN_CENTER; 1011 vp.flags |= VP_FLAG_ALIGN_CENTER;
1012 sc->set_viewport(&vp); 1012 struct viewport *last_vp = sc->set_viewport(&vp);
1013 text_h = sc->getcharheight(); 1013 text_h = sc->getcharheight();
1014 button_h = GRID_SIZE(sc->screen_type, text_h); 1014 button_h = GRID_SIZE(sc->screen_type, text_h);
1015 text_y = (button_h - text_h) / 2 + 1; 1015 text_y = (button_h - text_h) / 2 + 1;
@@ -1039,7 +1039,7 @@ static void kbd_draw_buttons(struct keyboard_parameters *pm, struct screen *sc)
1039 vp.x += vp.width; 1039 vp.x += vp.width;
1040 sc->vline(0, 0, button_h); 1040 sc->vline(0, 0, button_h);
1041 sc->putsxy(0, text_y, str(LANG_KBD_CANCEL)); 1041 sc->putsxy(0, text_y, str(LANG_KBD_CANCEL));
1042 sc->set_viewport(NULL); 1042 sc->set_viewport(last_vp);
1043} 1043}
1044 1044
1045static int keyboard_touchscreen(struct keyboard_parameters *pm, 1045static int keyboard_touchscreen(struct keyboard_parameters *pm,