[X7D/X9E] GVars display fixed (menus INPUTS / MIXES / OUTPUTS) (#4053)

This commit is contained in:
Bertrand Songis
2016-11-20 11:07:59 +01:00
committed by GitHub
parent 2d0a8a9611
commit b93b0a6500
6 changed files with 25 additions and 14 deletions
+6 -3
View File
@@ -137,10 +137,13 @@ int16_t editGVarFieldValue(coord_t x, coord_t y, int16_t value, int16_t min, int
}
if (GV_IS_GV_VALUE(value, min, max)) {
if (attr & LEFT)
if (IS_LEFT_ALIGNED(attr)) {
attr -= LEFT; /* because of ZCHAR */
else
x -= 2*FW+FWNUM;
}
else {
x -= 3*FW;
attr -= RIGHT;
}
attr &= ~PREC1;