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.

Make use of the fixed lcd_getstringsize() for prop fonts.


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

+15 -18
-2
apps/recorder/icons.c
··· 237 237 snprintf(buffer, sizeof(buffer), "%2d", percent); 238 238 #if defined(LCD_PROPFONTS) 239 239 lcd_getstringsize(buffer, 0, &width, &height); 240 - width += strlen(buffer) - 1; 241 240 #elif defined(LOADABLE_FONTS) 242 241 font = lcd_getcurrentldfont(); 243 242 lcd_getstringsize(buffer, font, &width, &height); ··· 320 319 minute & 0x0f); 321 320 #if defined(LCD_PROPFONTS) 322 321 lcd_getstringsize(buffer, 0, &width, &height); 323 - width += strlen(buffer) - 1; 324 322 #elif defined(LOADABLE_FONTS) 325 323 font = lcd_getcurrentldfont(); 326 324 lcd_getstringsize(buffer, font, &width, &height);
+15 -16
apps/settings.c
··· 733 733 lcd_getstringsize(reffub, 0, &width, &height); 734 734 cursor[0][INDEX_X] = 0; 735 735 cursor[0][INDEX_Y] = 1 + prev_line_height + 1; 736 - cursor[0][INDEX_WIDTH] = width + strlen(reffub) - 1; 736 + cursor[0][INDEX_WIDTH] = width; 737 737 738 738 strncpy(reffub, buffer + 3, 2); 739 739 reffub[2] = '\0'; 740 740 lcd_getstringsize(reffub, 0, &width, &height); 741 - cursor[1][INDEX_X] = cursor[0][INDEX_WIDTH] + 1 + separator_width + 1; 741 + cursor[1][INDEX_X] = cursor[0][INDEX_WIDTH] + separator_width; 742 742 cursor[1][INDEX_Y] = 1 + prev_line_height + 1; 743 - cursor[1][INDEX_WIDTH] = width + strlen(reffub) - 1; 743 + cursor[1][INDEX_WIDTH] = width; 744 744 745 745 strncpy(reffub, buffer + 6, 2); 746 746 reffub[2] = '\0'; 747 747 lcd_getstringsize(reffub, 0, &width, &height); 748 - cursor[2][INDEX_X] = cursor[0][INDEX_WIDTH] + 1 + separator_width + 1 + 749 - cursor[1][INDEX_WIDTH] + 1 + separator_width + 1; 748 + cursor[2][INDEX_X] = cursor[0][INDEX_WIDTH] + separator_width + 749 + cursor[1][INDEX_WIDTH] + separator_width; 750 750 cursor[2][INDEX_Y] = 1 + prev_line_height + 1; 751 - cursor[2][INDEX_WIDTH] = width + strlen(reffub) - 1; 751 + cursor[2][INDEX_WIDTH] = width; 752 752 753 753 lcd_getstringsize(buffer, 0, &width, &prev_line_height); 754 754 #elif defined(LOADABLE_FONTS) ··· 794 794 strncpy(reffub, buffer, 3); 795 795 reffub[3] = '\0'; 796 796 lcd_getstringsize(reffub, 0, &weekday_width, &height); 797 - weekday_width += strlen(reffub) - 1; 798 797 lcd_getstringsize(" ", 0, &separator_width, &height); 799 798 800 799 strncpy(reffub, buffer + 4, 4); 801 800 reffub[4] = '\0'; 802 801 lcd_getstringsize(reffub, 0, &width, &height); 803 - cursor[3][INDEX_X] = weekday_width + 1 + separator_width + 1; 802 + cursor[3][INDEX_X] = weekday_width + separator_width; 804 803 cursor[3][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height + 1; 805 - cursor[3][INDEX_WIDTH] = width + strlen(reffub) - 1; 804 + cursor[3][INDEX_WIDTH] = width; 806 805 807 806 strncpy(reffub, buffer + 9, 3); 808 807 reffub[3] = '\0'; 809 808 lcd_getstringsize(reffub, 0, &width, &height); 810 - cursor[4][INDEX_X] = weekday_width + 1 + separator_width + 1 + 811 - cursor[3][INDEX_WIDTH] + 1 + separator_width + 1; 809 + cursor[4][INDEX_X] = weekday_width + separator_width + 810 + cursor[3][INDEX_WIDTH] + separator_width; 812 811 cursor[4][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height + 1; 813 - cursor[4][INDEX_WIDTH] = width + strlen(reffub) - 1; 812 + cursor[4][INDEX_WIDTH] = width; 814 813 815 814 strncpy(reffub, buffer + 13, 2); 816 815 reffub[2] = '\0'; 817 816 lcd_getstringsize(reffub, 0, &width, &height); 818 - cursor[5][INDEX_X] = weekday_width + 1 + separator_width + 1 + 819 - cursor[3][INDEX_WIDTH] + 1 + separator_width + 1 + 820 - cursor[4][INDEX_WIDTH] + 1 + separator_width + 1; 817 + cursor[5][INDEX_X] = weekday_width + separator_width + 818 + cursor[3][INDEX_WIDTH] + separator_width + 819 + cursor[4][INDEX_WIDTH] + separator_width; 821 820 cursor[5][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height + 1; 822 - cursor[5][INDEX_WIDTH] = width + strlen(reffub) - 1; 821 + cursor[5][INDEX_WIDTH] = width; 823 822 824 823 lcd_invertrect(cursor[cursorpos][INDEX_X], 825 824 cursor[cursorpos][INDEX_Y] + lcd_getymargin(),