From 93f9e7cbfb3905791feccb4da68f6cc969d1e148 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Thu, 11 Feb 2010 10:41:06 +0000 Subject: fix text scrolling handling in do_menu, set_time_screen and time_screen. Don't scroll text in time_screen(). the lines will be redrawn before scrolling statrs, so they don't scroll anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24591 a1c6a512-1295-4272-9138-f99709370657 --- apps/menus/time_menu.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'apps/menus/time_menu.c') diff --git a/apps/menus/time_menu.c b/apps/menus/time_menu.c index 757ce82928..597f7e0c3a 100644 --- a/apps/menus/time_menu.c +++ b/apps/menus/time_menu.c @@ -62,10 +62,10 @@ static int timedate_set(void) #define C2DIG2DEC(x) (S100(x)-100) tm.tm_hour = 0; - tm.tm_min = 0; - tm.tm_sec = 0; + tm.tm_min = 0; + tm.tm_sec = 0; tm.tm_mday = C2DIG2DEC(DAY); - tm.tm_mon = C2DIG2DEC(MONTH)-1; + tm.tm_mon = C2DIG2DEC(MONTH)-1; tm.tm_wday = 1; tm.tm_year = YEAR-1900; } @@ -193,8 +193,8 @@ static void draw_timedate(struct viewport *vp, struct screen *display) d = str(LANG_UNKNOWN); } - display->puts_scroll(0, line++, t); - display->puts_scroll(0, line, d); + display->puts(0, line++, t); + display->puts(0, line, d); display->update_viewport(); display->set_viewport(NULL); @@ -284,9 +284,6 @@ int time_screen(void* ignored) } ret = do_menu(&time_menu, NULL, menu, false); - FOR_NB_SCREENS(i) - screens[i].scroll_stop(&clock[i]); - /* see comments above in the button callback */ if (!menu_was_pressed && ret == GO_TO_PREVIOUS) return 0; -- cgit v1.2.3