From 924972c743b85dda7d86c52f6c2397dc78464bf5 Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Thu, 1 Jan 2004 18:35:47 +0000 Subject: on popular demand: flip screen now in F3 menu, instead of inverse git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4185 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'apps') diff --git a/apps/screens.c b/apps/screens.c index 2e5f44c2ab..c4ae113676 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -572,10 +572,9 @@ bool f3_screen(void) int w,h; char* ptr; - ptr = str(LANG_F3_STATUS); - lcd_getstringsize(ptr,&w,&h); lcd_clear_display(); + /* Scrollbar */ lcd_putsxy(0, LCD_HEIGHT/2 - h*2, str(LANG_F3_SCROLL)); lcd_putsxy(0, LCD_HEIGHT/2 - h, str(LANG_F3_BAR)); lcd_putsxy(0, LCD_HEIGHT/2, @@ -583,6 +582,9 @@ bool f3_screen(void) lcd_bitmap(bitmap_icons_7x8[Icon_FastBackward], LCD_WIDTH/2 - 16, LCD_HEIGHT/2 - 4, 7, 8, true); + /* Status bar */ + ptr = str(LANG_F3_STATUS); + lcd_getstringsize(ptr,&w,&h); lcd_putsxy(LCD_WIDTH - w, LCD_HEIGHT/2 - h*2, ptr); lcd_putsxy(LCD_WIDTH - w, LCD_HEIGHT/2 - h, str(LANG_F3_BAR)); lcd_putsxy(LCD_WIDTH - w, LCD_HEIGHT/2, @@ -590,11 +592,14 @@ bool f3_screen(void) lcd_bitmap(bitmap_icons_7x8[Icon_FastForward], LCD_WIDTH/2 + 8, LCD_HEIGHT/2 - 4, 7, 8, true); - /* Invert */ - lcd_putsxy((LCD_WIDTH-w)/2, LCD_HEIGHT - h*2, str(LANG_INVERT)); - lcd_putsxy((LCD_WIDTH-w)/2, LCD_HEIGHT - h, - global_settings.invert ? - str(LANG_INVERT_LCD_INVERSE) : str(LANG_INVERT_LCD_NORMAL)); + /* Flip */ + ptr = str(LANG_FLIP_DISPLAY); + lcd_getstringsize(ptr,&w,&h); + lcd_putsxy((LCD_WIDTH-w)/2, LCD_HEIGHT - h*2, str(LANG_FLIP_DISPLAY)); + ptr = global_settings.flip_display ? + str(LANG_SET_BOOL_YES) : str(LANG_SET_BOOL_NO); + lcd_getstringsize(ptr,&w,&h); + lcd_putsxy((LCD_WIDTH-w)/2, LCD_HEIGHT - h, ptr); lcd_bitmap(bitmap_icons_7x8[Icon_DownArrow], LCD_WIDTH/2 - 3, LCD_HEIGHT - h*3, 7, 8, true); @@ -615,8 +620,12 @@ bool f3_screen(void) case BUTTON_DOWN: case BUTTON_F3 | BUTTON_DOWN: - global_settings.invert = !global_settings.invert; - lcd_set_invert_display(global_settings.invert); + case BUTTON_UP: /* allow "up" as well, more tolerant if tilted */ + case BUTTON_F3 | BUTTON_UP: + global_settings.flip_display = !global_settings.flip_display; + button_set_flip(global_settings.flip_display); + lcd_set_flip(global_settings.flip_display); + //lcd_update(); /* need to refresh */ used = true; break; -- cgit v1.2.3