GAP bug in flipped layout
This commit is contained in:
4
setup.c
4
setup.c
@@ -116,7 +116,7 @@ void setup()
|
|||||||
m->spots[j].h = height_spot1;
|
m->spots[j].h = height_spot1;
|
||||||
if (j == SPOT1) continue;
|
if (j == SPOT1) continue;
|
||||||
|
|
||||||
m->spots[j].y = (SPOT1_ALIGN == SPOT1_LEFT ? y + height_spot1: y) + GAP;
|
m->spots[j].y = SPOT1_ALIGN == SPOT1_LEFT ? y + height_spot1 + GAP: y;
|
||||||
m->spots[j].h = h - height_spot1 - GAP;
|
m->spots[j].h = h - height_spot1 - GAP;
|
||||||
m->spots[j].w = w - width_spot2 - GAP;
|
m->spots[j].w = w - width_spot2 - GAP;
|
||||||
if (j == SPOT3) continue;
|
if (j == SPOT3) continue;
|
||||||
@@ -136,7 +136,7 @@ void setup()
|
|||||||
m->spots[j].h = h;
|
m->spots[j].h = h;
|
||||||
if (j == SPOT1) continue;
|
if (j == SPOT1) continue;
|
||||||
|
|
||||||
m->spots[j].x = (SPOT1_ALIGN == SPOT1_LEFT ? x + width_spot1: x) + GAP;
|
m->spots[j].x = SPOT1_ALIGN == SPOT1_LEFT ? x + width_spot1 + GAP: x;
|
||||||
m->spots[j].w = w - width_spot1 - GAP;
|
m->spots[j].w = w - width_spot1 - GAP;
|
||||||
m->spots[j].h = height_spot2;
|
m->spots[j].h = height_spot2;
|
||||||
if (j == SPOT2) continue;
|
if (j == SPOT2) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user