From fd57db6068afe0f0f796ebe24b76437ba1937d73 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 23 Mar 2016 23:20:40 +0100 Subject: [PATCH] =?UTF-8?q?[Horus]=C2=A0Curve=20bug=20when=20drawing=20neg?= =?UTF-8?q?ative=20X=20or=20negative=20Y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- radio/src/gui/horus/menu_model_curves.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/gui/horus/menu_model_curves.cpp b/radio/src/gui/horus/menu_model_curves.cpp index 938edebcc..e5d3feabc 100644 --- a/radio/src/gui/horus/menu_model_curves.cpp +++ b/radio/src/gui/horus/menu_model_curves.cpp @@ -250,7 +250,7 @@ bool menuModelCurveOne(evt_t event) lcdDrawSolidFilledRect(point.x, CURVE_CENTER_Y-CURVE_SIDE_WIDTH, 2, 2*CURVE_SIDE_WIDTH+2, CURVE_CURSOR_COLOR); char text[5]; - strAppendUnsigned(text, points[i]); + strAppendSigned(text, points[i]); if (point.x >= CURVE_CENTER_X) { drawCurveVerticalScale(point.x-15); @@ -273,7 +273,7 @@ bool menuModelCurveOne(evt_t event) drawCurvePoint(point.x-3, point.y-4, CURVE_CURSOR_COLOR); - strAppendUnsigned(text, x); + strAppendSigned(text, x); drawCurveCoord(limit(CURVE_CENTER_X-CURVE_SIDE_WIDTH-1, point.x-CURVE_COORD_WIDTH/2, CURVE_CENTER_X+CURVE_SIDE_WIDTH-CURVE_COORD_WIDTH+1), CURVE_CENTER_Y+CURVE_SIDE_WIDTH+2, text, selectionMode==1); if (s_editMode > 0) {