[stock / M128 / gruvin9x] Problem when displaying GVx on AVR

This commit is contained in:
bsongis
2012-10-24 21:52:50 +00:00
parent 30ce636008
commit e144f12cd7
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -627,7 +627,11 @@ int8_t gvarMenuItem(uint8_t x, uint8_t y, int8_t value, int8_t min, int8_t max,
eeDirty(EE_MODEL);
}
if (value >= 126 || value <= -126) {
putsStrIdx(attr&LEFT?x:x-2*FW-FWNUM, y, STR_GV, (uint8_t)value - 125, attr);
if (attr & LEFT) {
attr -= LEFT; /* because of ZCHAR */
x -= 2*FW+FWNUM;
}
putsStrIdx(x, y, STR_GV, (uint8_t)value - 125, attr);
if (invers) value = checkIncDec(event, (uint8_t)value, 126, 130, EE_MODEL);
}
else {