Merge pull request #1108 from discip/master

fix for disconnected tip icon in lefty mode
This commit is contained in:
Ben V. Brown
2021-11-06 08:16:02 +11:00
committed by GitHub
2 changed files with 10 additions and 7 deletions

View File

@@ -137,13 +137,16 @@ const uint8_t idleScreenBG[] = {
const uint8_t disconnectedTipIcon[] = {
//
// 41 x 16
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x80, 0x18, 0xb0, 0x60, 0xc0, 0x80, 0xc0, 0x60, 0xb0, 0x18, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80,
0x00, 0x80, 0x00, 0x40, 0x00, 0x20, 0x00, 0x50, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x80, 0x18, 0xb0, 0x60, 0xc0, 0x80, 0xc0, 0x60, 0xb0, 0x18, 0x80, 0x00, 0x80, 0x00, 0x80,
0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x40, 0x00, 0x20, 0x00, 0x50, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x02, 0x30,
0x1a, 0x0c, 0x07, 0x03, 0x07, 0x0c, 0x1a, 0x30, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x04, 0x00, 0x08, 0x00, 0x15, 0x00};
const uint8_t disconnectedTipIconFlip[] = {
//
0x00, 0x01, 0x00, 0x01, 0x00, 0x02, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x02, 0x30, 0x1a, 0x0c, 0x07, 0x03, 0x07, 0x0c, 0x1a, 0x30, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02,
0x00, 0x02, 0x00, 0x04, 0x00, 0x08, 0x00, 0x15, 0x00
//
};
// 41 x 16
0x00, 0xa8, 0x00, 0x10, 0x00, 0x20, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x0c, 0x58, 0x30, 0xe0, 0xc0, 0xe0, 0x30, 0x58, 0x0c, 0x40,
0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x40, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x0a, 0x00, 0x04, 0x00, 0x02, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00,
0x01, 0x00, 0x01, 0x18, 0x0d, 0x06, 0x03, 0x01, 0x03, 0x06, 0x0d, 0x18, 0x01, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00};
// 16 x 16
const uint8_t brightnessIcon[]

View File

@@ -986,7 +986,7 @@ void startGUITask(void const *argument) {
if (OLED::getRotation()) {
#endif
// in right handed mode we want to draw over the first part
OLED::drawArea(55, 0, 41, 16, disconnectedTipIcon);
OLED::drawArea(55, 0, 41, 16, disconnectedTipIconFlip);
} else {
OLED::drawArea(0, 0, 41, 16, disconnectedTipIcon);