From 312eb9d79619375ad655efb9e8ab04c99fd088c8 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 9 Dec 2019 18:11:33 +0100 Subject: [PATCH] Cosmetics --- radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp b/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp index fe10416ec..fd6a13668 100644 --- a/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp +++ b/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp @@ -442,9 +442,6 @@ coord_t BitmapBuffer::drawSizedText(coord_t x, coord_t y, const char * s, uint8_ if (!c) { break; } - else if (c == 0x20) { - INCREMENT_POS(4); - } else if (c >= 0xFE) { s++; c = uint8_t(*s) + ((c & 0x01) << 8) - 1; @@ -454,7 +451,7 @@ coord_t BitmapBuffer::drawSizedText(coord_t x, coord_t y, const char * s, uint8_ uint8_t width = drawChar(x, y, font, fontspecs, c, flags); INCREMENT_POS(width + 1); } - else if (c > 0x20) { + else if (c >= 0x20) { uint8_t width = drawChar(x, y, font, fontspecs, getMappedChar(c), flags); INCREMENT_POS(width + 1); }