Add a 2 pixel wide space in menus for scrolling indicator
This commit is contained in:
@@ -264,6 +264,8 @@ static void printShortDescription(uint32_t shortDescIndex,
|
||||
// prepare cursor for value
|
||||
OLED::setFont(0);
|
||||
OLED::setCharCursor(cursorCharPosition, 0);
|
||||
// make room for scroll indicator
|
||||
OLED::setCursor(OLED::getCursorX() - 2, 0);
|
||||
}
|
||||
|
||||
static int userConfirmation(const char *message) {
|
||||
@@ -782,7 +784,8 @@ static void displayMenu(size_t index) {
|
||||
OLED::print(SettingsMenuEntries[index]);
|
||||
// Draw symbol
|
||||
// 16 pixel wide image
|
||||
OLED::drawArea(96 - 16, 0, 16, 16, (&SettingsMenuIcons[(16 * 2) * index]));
|
||||
// 2 pixel wide scrolling indicator
|
||||
OLED::drawArea(96 - 16 - 2, 0, 16, 16, (&SettingsMenuIcons[(16 * 2) * index]));
|
||||
}
|
||||
|
||||
static void settings_displayCalibrateVIN(void) {
|
||||
|
||||
Reference in New Issue
Block a user