mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
[X7] Screenshots fix - #4143
This commit is contained in:
parent
a2e37c5dbc
commit
ad8df76c37
2 changed files with 8 additions and 2 deletions
|
@ -273,9 +273,11 @@ inline display_t getPixel(uint8_t x, uint8_t y)
|
|||
return 0;
|
||||
}
|
||||
|
||||
display_t * p = &displayBuf[y / 2 * LCD_W + x];
|
||||
return (y & 1) ? (*p >> 4) : (*p & 0x0F);
|
||||
display_t pixel = displayBuf[(y / 8) * LCD_W + x];
|
||||
display_t mask = 1 << (y & 7);
|
||||
return ((pixel & mask) ? 0xf : 0);
|
||||
}
|
||||
|
||||
const char * writeScreenshot();
|
||||
|
||||
void drawShutdownAnimation(uint32_t index);
|
||||
|
|
|
@ -584,9 +584,13 @@ void menuMainView(event_t event)
|
|||
}
|
||||
|
||||
// And ! in case of unexpected shutdown
|
||||
#if defined(LOG_TELEMETRY) || defined(WATCHDOG_DISABLED)
|
||||
lcdDrawChar(REBOOT_X, 0*FH, '!', INVERS);
|
||||
#else
|
||||
if (unexpectedShutdown) {
|
||||
lcdDrawChar(REBOOT_X, 0*FH, '!', INVERS);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(GVARS) && !defined(PCBSTD)
|
||||
if (gvarDisplayTimer > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue