mirror of
https://github.com/Hopiu/rpi-rgb-led-matrix.git
synced 2026-05-27 07:44:01 +00:00
o Fix overflow issue for volume bars on larger displays (Fixes #161)
This commit is contained in:
parent
744578c8bd
commit
fc8b170b27
1 changed files with 2 additions and 2 deletions
|
|
@ -809,8 +809,8 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
void drawBarRow(int bar, uint8_t y, uint8_t r, uint8_t g, uint8_t b) {
|
||||
for (uint8_t x=bar*barWidth_; x<(bar+1)*barWidth_; ++x) {
|
||||
void drawBarRow(int bar, int y, uint8_t r, uint8_t g, uint8_t b) {
|
||||
for (int x=bar*barWidth_; x<(bar+1)*barWidth_; ++x) {
|
||||
canvas()->SetPixel(x, height_-1-y, r, g, b);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue