Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Wrapping backwards in menus didn't work well when using a large font


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4055 a1c6a512-1295-4272-9138-f99709370657

+14 -1
+14 -1
apps/menu.c
··· 184 184 #ifdef HAVE_LCD_BITMAP 185 185 int fw, fh; 186 186 int menu_lines; 187 + lcd_setfont(FONT_UI); 187 188 lcd_getstringsize("A", &fw, &fh); 188 189 if (global_settings.statusbar) 189 190 menu_lines = (LCD_HEIGHT - STATUSBAR_HEIGHT) / fh; ··· 245 246 int menu_show(int m) 246 247 { 247 248 bool exit = false; 249 + #ifdef HAVE_LCD_BITMAP 250 + int fw, fh; 251 + int menu_lines; 252 + lcd_setfont(FONT_UI); 253 + lcd_getstringsize("A", &fw, &fh); 254 + if (global_settings.statusbar) 255 + menu_lines = (LCD_HEIGHT - STATUSBAR_HEIGHT) / fh; 256 + else 257 + menu_lines = LCD_HEIGHT/fh; 258 + #else 259 + int menu_lines = MENU_LINES; 260 + #endif 248 261 249 262 menu_draw(m); 250 263 ··· 264 277 else { 265 278 /* move to bottom */ 266 279 #ifdef HAVE_RECORDER_KEYPAD 267 - menus[m].top = menus[m].itemcount-9; 280 + menus[m].top = menus[m].itemcount-(menu_lines+1); 268 281 #else 269 282 menus[m].top = menus[m].itemcount-3; 270 283 #endif