summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/wps.c b/apps/wps.c
index bed6ca0520..2368a578ef 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -595,13 +595,19 @@ static bool menu(void)
595bool f2_screen(void) 595bool f2_screen(void)
596{ 596{
597 bool exit = false; 597 bool exit = false;
598 int w, h;
599 char buf[32];
600
601 /* Get the font height */
602#ifdef LCD_PROPFONTS
603 lcd_getstringsize("A",0,&w,&h);
604#else
605 lcd_getfontsize(0,&w,&h);
606#endif
598 607
599 lcd_stop_scroll(); 608 lcd_stop_scroll();
600 609
601 while (!exit) { 610 while (!exit) {
602 int w,h;
603 char buf[32];
604
605 lcd_clear_display(); 611 lcd_clear_display();
606 612
607 lcd_putsxy(0, LCD_HEIGHT/2 - h*2, "Shuffle", 0); 613 lcd_putsxy(0, LCD_HEIGHT/2 - h*2, "Shuffle", 0);
@@ -613,6 +619,8 @@ bool f2_screen(void)
613 619
614 snprintf(buf, sizeof buf, "Dir filter: %s", 620 snprintf(buf, sizeof buf, "Dir filter: %s",
615 global_settings.mp3filter ? "on" : "off"); 621 global_settings.mp3filter ? "on" : "off");
622
623 /* Get the string width and height */
616#ifdef LCD_PROPFONTS 624#ifdef LCD_PROPFONTS
617 lcd_getstringsize(buf,0,&w,&h); 625 lcd_getstringsize(buf,0,&w,&h);
618#else 626#else