Simply 1x2 layout code
This commit is contained in:
@@ -48,12 +48,8 @@ class Layout1x2: public Layout
|
|||||||
{
|
{
|
||||||
rect_t zone = getMainZone();
|
rect_t zone = getMainZone();
|
||||||
|
|
||||||
if (index == 0) {
|
zone.h /= 2;
|
||||||
return {zone.x, zone.y, zone.w, zone.h / 2};
|
zone.y += zone.h * index;
|
||||||
}
|
|
||||||
else {
|
|
||||||
return {zone.x, zone.y + zone.h / 2, zone.w, zone.h / 2};
|
|
||||||
}
|
|
||||||
|
|
||||||
return zone;
|
return zone;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user