From 5d67f4ba65e1ecba1975efa823843f2b77ae00e4 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 8 Feb 2012 21:35:06 +0000 Subject: [PATCH] 25% bars not displayed on a dotted bar portion --- src/main_views.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main_views.cpp b/src/main_views.cpp index 89845febd..5d73655d4 100644 --- a/src/main_views.cpp +++ b/src/main_views.cpp @@ -389,7 +389,7 @@ void menuMainView(uint8_t event) uint8_t width = (uint8_t)limit((int16_t)0, (int16_t)((int16_t)100 * (value - g_model.frsky.bars[i].barMin * 4) / ((63 - g_model.frsky.bars[i].barMax) * 4 - g_model.frsky.bars[i].barMin * 4)), (int16_t)100); lcd_filled_rect(26, bars_height+6+1+i*(bars_height+6), width, bars_height, (threshold > value) ? DOTTED : SOLID); for (uint8_t j=50; j<125; j+=25) - if (j>thresholdX) lcd_vline(j, bars_height+6+1+i*(bars_height+6), bars_height); + if (j>26+thresholdX) lcd_vline(j, bars_height+6+1+i*(bars_height+6), bars_height); if (thresholdX) { lcd_vlineStip(26+thresholdX, bars_height+4+i*(bars_height+6), bars_height+3, DOTTED); lcd_hline(25+thresholdX, bars_height+4+i*(bars_height+6), 3);