Simply 1x2 layout code

This commit is contained in:
Peter Feerick
2021-08-24 19:10:57 +10:00
parent 52f4714e4c
commit 66a1caa150
+2 -6
View File
@@ -48,12 +48,8 @@ class Layout1x2: public Layout
{
rect_t zone = getMainZone();
if (index == 0) {
return {zone.x, zone.y, zone.w, zone.h / 2};
}
else {
return {zone.x, zone.y + zone.h / 2, zone.w, zone.h / 2};
}
zone.h /= 2;
zone.y += zone.h * index;
return zone;
}