mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8418a2c94a
commit
ab9fd1840b
52 changed files with 173 additions and 412 deletions
|
@ -174,7 +174,7 @@ static void draw_piece(int x, int y, int w, int h, int color_id, bool emph) {
|
|||
|
||||
if (settings.labeling && color_id >= 0) {
|
||||
char text[2];
|
||||
rb->snprintf(text, 2, "%d", color_id);
|
||||
rb->snprintf(text, sizeof(text), "%d", color_id);
|
||||
|
||||
int fw, fh; rb->font_getstringsize(text, &fw, &fh, FONT_SYSFIXED);
|
||||
rb->lcd_putsxy(x + get_margin(fw, w), y + get_margin(fh, h), text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue