A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
2
fork

Configure Feed

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

metronome: increase rectangle sizes to use a greater portion of the screen

Change-Id: I6c0b3faa173f5b68282c8e75b039e61d2362f749

authored by

Paul Sauro and committed by
Solomon Peachy
e3fb4191 4ebf2edf

+9 -6
+9 -6
apps/plugins/metronome.c
··· 847 847 ps = part; 848 848 display->clear_display(); 849 849 display->setfont(FONT_SYSFIXED); 850 + int rectangle_height = display->lcdheight - ((SYSFONT_HEIGHT + 1) * 7); 851 + if (rectangle_height < 12) 852 + rectangle_height = 12; 850 853 switch(state) 851 854 { 852 855 case 0: ··· 863 866 case 1: 864 867 if((beat+1) % 2 == 0) 865 868 display->fillrect( display->lcdwidth/2, 0 866 - , display->lcdwidth, 12 ); 869 + , display->lcdwidth, rectangle_height ); 867 870 else 868 871 display->fillrect( 0, 0 869 - , display->lcdwidth/2-1, 12 ); 872 + , display->lcdwidth/2-1, rectangle_height ); 870 873 break; 871 874 case 2: 872 875 if((beat+1) % 2 == 0) 873 - display->fillrect( display->lcdwidth/2, display->lcdheight-13 874 - , display->lcdwidth, 12 ); 876 + display->fillrect( display->lcdwidth/2, display->lcdheight - rectangle_height - 1 877 + , display->lcdwidth, rectangle_height ); 875 878 else 876 - display->fillrect( 0, display->lcdheight-13 877 - , display->lcdwidth/2-1, 12 ); 879 + display->fillrect( 0, display->lcdheight - rectangle_height - 1 880 + , display->lcdwidth/2-1, rectangle_height ); 878 881 break; 879 882 case 3: 880 883 display->puts((textlen-3)/2,0, "o.O");