add a "popup" menu variant (for the reflow profile editor)

This commit is contained in:
2020-01-12 20:32:04 +01:00
parent 7240773581
commit e22d4fb9e2
10 changed files with 101 additions and 20 deletions
+7 -1
View File
@@ -89,7 +89,7 @@ void LCD_setRect(int x0, int y0, int x1, int y1, bool fill, enum Color bw)
else
xDiff = x1 - x0;
while (xDiff > 0) {
while (xDiff >= 0) {
LCD_setLine(x0, y0, x0, y1, bw);
if (x0 > x1)
@@ -361,3 +361,9 @@ void LCD_invertDisplayData()
LCD_displayMap[i] ^= 0xFF;
}
}
void LCD_setShadeOverlay() {
for (int i = 0; i < (LCD_WIDTH * LCD_HEIGHT / 8); i++) {
LCD_displayMap[i] |= i & 1 ? 0x88 : 0x22;
}
}
+3
View File
@@ -87,4 +87,7 @@ void LCD_invertDisplayData();
void LCD_setBitmap(const struct BitmapImage *image, int x, int y, bool bg, enum Color color);
/** draw dotted shadow over current content */
void LCD_setShadeOverlay();
#endif //LCD_DRAWING_H