fix(color): ensure outputs widget channel width is odd for symmetrical display (#4954)
This commit is contained in:
@@ -35,7 +35,7 @@ class ChannelValue : public Window
|
|||||||
ChannelValue(Widget* parent, uint8_t col, uint8_t row, coord_t colWidth,
|
ChannelValue(Widget* parent, uint8_t col, uint8_t row, coord_t colWidth,
|
||||||
uint8_t channel, LcdFlags txtColor, LcdFlags barColor) :
|
uint8_t channel, LcdFlags txtColor, LcdFlags barColor) :
|
||||||
Window(parent,
|
Window(parent,
|
||||||
{col * colWidth, row * ROW_HEIGHT, colWidth - 1, (ROW_HEIGHT + 1)}),
|
{col * colWidth, row * ROW_HEIGHT, colWidth - 1 + (colWidth & 1), (ROW_HEIGHT + 1)}),
|
||||||
channel(channel)
|
channel(channel)
|
||||||
{
|
{
|
||||||
setWindowFlag(NO_FOCUS);
|
setWindowFlag(NO_FOCUS);
|
||||||
|
|||||||
Reference in New Issue
Block a user