From 6adb0a08c89a84ff7dc656e2cc379a100e22efe3 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sat, 10 Mar 2018 14:30:40 +0100 Subject: * Menu.c: bugfix for PLT level list. * Minor: added whitespace to "sizeof" operand. --- Source/Font.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Font.c') 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: -- cgit v1.2.3