diff options
| author | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-28 22:00:45 +0100 |
|---|---|---|
| committer | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-28 22:00:45 +0100 |
| commit | f2634319ab7ebfe22fc6d2ebabcdd27879f3667e (patch) | |
| tree | d8834f64f0dc4349bf34cf29a6831a12063b1435 /examples/AuroraDemo/PatternBounce.h | |
| parent | aa28e2a93baaf90083b2d556c0ac80602d9940aa (diff) | |
Clean-up and fix some examples
Diffstat (limited to 'examples/AuroraDemo/PatternBounce.h')
| -rw-r--r-- | examples/AuroraDemo/PatternBounce.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/AuroraDemo/PatternBounce.h b/examples/AuroraDemo/PatternBounce.h index 7340514..c0d595a 100644 --- a/examples/AuroraDemo/PatternBounce.h +++ b/examples/AuroraDemo/PatternBounce.h @@ -58,8 +58,8 @@ public: effects.drawBackgroundFastLEDPixelCRGB(boid.location.x, boid.location.y, effects.ColorFromCurrentPalette(boid.colorIndex)); - if (boid.location.y >= MATRIX_HEIGHT - 1) { - boid.location.y = MATRIX_HEIGHT - 1; + if (boid.location.y >= VPANEL_H - 1) { + boid.location.y = VPANEL_H - 1; boid.velocity.y *= -1.0; } |
