Cosmetics

This commit is contained in:
3djc
2021-04-05 17:25:00 +02:00
parent bd690ac366
commit 5334886a3d
+8 -3
View File
@@ -74,10 +74,8 @@ class Layout1x1: public Layout
return 1;
}
rect_t getZone(unsigned int index) const override
rect_t getMainZone(rect_t zone) const
{
rect_t zone = {10, 10, LCD_W - 2 * border, LCD_H - 2 * border};
if (HAS_TOPBAR()) {
zone.y += MENU_HEADER_HEIGHT;
zone.h -= MENU_HEADER_HEIGHT;
@@ -103,6 +101,13 @@ class Layout1x1: public Layout
return zone;
}
rect_t getZone(unsigned int index) const override
{
rect_t zone = getMainZone({border, border, LCD_W - 2 * border, LCD_H - 2 * border});
return zone;
}
void checkEvents() override
{
Layout::checkEvents();