From fd127e1ec2677ecb4574ceebd989955903ece0bb Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Wed, 9 Nov 2016 09:36:50 +0400 Subject: [PATCH] Fix curve settings alignment (Fix #4006) --- radio/src/gui/common/stdlcd/model_curves.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/gui/common/stdlcd/model_curves.cpp b/radio/src/gui/common/stdlcd/model_curves.cpp index bac02bfe0..4c284d25a 100644 --- a/radio/src/gui/common/stdlcd/model_curves.cpp +++ b/radio/src/gui/common/stdlcd/model_curves.cpp @@ -109,13 +109,13 @@ void editCurveRef(coord_t x, coord_t y, CurveRef & curve, event_t event, LcdFlag { coord_t x1 = x; if (flags & RIGHT) { - x1 -= 8*FW; + x1 -= 6*FW; flags -= RIGHT; } else { - x += 8*FW; + x += 6*FW; } - + lcdDrawTextAtIndex(x1, y, "\004DiffExpoFuncCstm", curve.type, menuHorizontalPosition==0 ? flags : 0); if (flags && menuHorizontalPosition==0) { CHECK_INCDEC_MODELVAR_ZERO(event, curve.type, CURVE_REF_CUSTOM); @@ -124,7 +124,7 @@ void editCurveRef(coord_t x, coord_t y, CurveRef & curve, event_t event, LcdFlag switch (curve.type) { case CURVE_REF_DIFF: case CURVE_REF_EXPO: - curve.value = GVAR_MENU_ITEM(x, y, curve.value, -100, 100, RIGHT | (menuHorizontalPosition==1 ? flags : 0), 0, event); + curve.value = GVAR_MENU_ITEM(x, y, curve.value, -100, 100, LEFT | (menuHorizontalPosition==1 ? flags : 0), 0, event); break; case CURVE_REF_FUNC: lcdDrawTextAtIndex(x, y, STR_VCURVEFUNC, curve.value, RIGHT | (menuHorizontalPosition==1 ? flags : 0));