mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
[Horus] Slider a little bit modified
This commit is contained in:
parent
b43d336978
commit
48365f36a5
4 changed files with 3 additions and 3 deletions
Binary file not shown.
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 227 B |
Binary file not shown.
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 232 B |
Binary file not shown.
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 259 B |
|
@ -265,10 +265,10 @@ void drawSlider(coord_t x, coord_t y, uint8_t value, uint8_t max, uint8_t attr)
|
|||
lcdDrawBitmapPattern(x + width - 4, y + 8, LBM_SLIDER_BAR_RIGHT, value >= max ? TEXT_INVERTED_BGCOLOR : LINE_COLOR);
|
||||
|
||||
// The point
|
||||
lcdDrawBitmapPattern(x + w - 4, y + 3, LBM_SLIDER_POINT_OUT, TEXT_COLOR);
|
||||
lcdDrawBitmapPattern(x + w - 4, y + 3, LBM_SLIDER_POINT_MID, TEXT_BGCOLOR);
|
||||
lcdDrawBitmapPattern(x + w - 4, y + 2, LBM_SLIDER_POINT_OUT, TEXT_COLOR);
|
||||
lcdDrawBitmapPattern(x + w - 4, y + 2, LBM_SLIDER_POINT_MID, TEXT_BGCOLOR);
|
||||
if (attr && (!(attr & BLINK) || !BLINK_ON_PHASE))
|
||||
lcdDrawBitmapPattern(x + w - 4, y + 3, LBM_SLIDER_POINT_IN, TEXT_INVERTED_BGCOLOR);
|
||||
lcdDrawBitmapPattern(x + w - 4, y + 2, LBM_SLIDER_POINT_IN, TEXT_INVERTED_BGCOLOR);
|
||||
}
|
||||
|
||||
#if defined(GVARS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue