aboutsummaryrefslogtreecommitdiff
path: root/examples/AuroraDemo/PatternBounce.h
diff options
context:
space:
mode:
authormrcodetastic <12006953+mrcodetastic@users.noreply.github.com>2024-07-28 22:00:45 +0100
committermrcodetastic <12006953+mrcodetastic@users.noreply.github.com>2024-07-28 22:00:45 +0100
commitf2634319ab7ebfe22fc6d2ebabcdd27879f3667e (patch)
treed8834f64f0dc4349bf34cf29a6831a12063b1435 /examples/AuroraDemo/PatternBounce.h
parentaa28e2a93baaf90083b2d556c0ac80602d9940aa (diff)
Clean-up and fix some examples
Diffstat (limited to 'examples/AuroraDemo/PatternBounce.h')
-rw-r--r--examples/AuroraDemo/PatternBounce.h4
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;
}