mirror of
https://github.com/Hopiu/rpi-rgb-led-matrix.git
synced 2026-05-24 06:33:43 +00:00
o Fix off-by-one for canvas size.
This commit is contained in:
parent
a1f4e6dde7
commit
52178a0ec5
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ public:
|
|||
virtual int height() const { return 64; }
|
||||
virtual void SetPixel(int x, int y,
|
||||
uint8_t red, uint8_t green, uint8_t blue) {
|
||||
if (x < 0 || x > width() || y < 0 || y > height()) return;
|
||||
if (x < 0 || x >= width() || y < 0 || y >= height()) return;
|
||||
// We have up to column 64 one direction, then folding around. Lets map
|
||||
if (y > 31) {
|
||||
x = 127 - x;
|
||||
|
|
|
|||
Loading…
Reference in a new issue