aboutsummaryrefslogtreecommitdiff
path: root/Source/Font.c
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-03-10 14:30:40 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2018-03-10 14:30:40 +0100
commit6adb0a08c89a84ff7dc656e2cc379a100e22efe3 (patch)
tree0939468e18a8fc7c2288407d9fcb8508af30e011 /Source/Font.c
parentbaa647ad7caf95ea2619d8456bcfd0f04a08a719 (diff)
downloadairport-6adb0a08c89a84ff7dc656e2cc379a100e22efe3.tar.gz
* Menu.c: bugfix for PLT level list.
* Minor: added whitespace to "sizeof" operand.
Diffstat (limited to 'Source/Font.c')
-rw-r--r--Source/Font.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Font.c b/Source/Font.c
index 4d7fd52..a639acb 100644
--- a/Source/Font.c
+++ b/Source/Font.c
@@ -209,24 +209,29 @@ void FontPrintText(TYPE_FONT * ptrFont, short x, short y, char* str, ...)
GfxDrawButton(x, y, PAD_SQUARE);
x += BUTTON_SIZE;
+
+ line_count += BUTTON_SIZE / ptrFont->char_w;
break;
case CIRCLE_BTN_8BIT:
GfxDrawButton(x, y, PAD_CIRCLE);
x += BUTTON_SIZE;
+ line_count += BUTTON_SIZE / ptrFont->char_w;
break;
case TRIANGLE_BTN_8BIT:
GfxDrawButton(x, y, PAD_TRIANGLE);
x += BUTTON_SIZE;
+ line_count += BUTTON_SIZE / ptrFont->char_w;
break;
case CROSS_BTN_8BIT:
GfxDrawButton(x, y, PAD_CROSS);
x += BUTTON_SIZE;
+ line_count += BUTTON_SIZE / ptrFont->char_w;
break;
default: