Protect against neg x drawing

This commit is contained in:
3djc
2019-07-05 12:40:25 +02:00
parent 575d87f70c
commit c0b3aa0ba6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ void menuTextView(event_t event)
#else
// TODO?
#endif
lcdDrawText(LCD_W/2-strlen(getBasename(title))*FW/2, 0, getBasename(title));
lcdDrawText(LCD_W/2, 0, getBasename(title), CENTERED);
lcdInvertLine(0);
if (lines_count > LCD_LINES-1) {