summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Paddle.cpp
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-10-18 21:14:39 (GMT)
committerKieran Cawthray <kieranc@gmail.com>2021-10-18 21:14:39 (GMT)
commitff1fce18d6188d8b23374613f07e281173f228e7 (patch)
tree7d8bcf5448f86f31f092f4f554a8af167c225d7d /src/displayapp/screens/Paddle.cpp
parentc4ab17f58707771256c6fffd8db63d32e2831610 (diff)
parentab7c6e162f82674d176466d361b1f87a0d55cf4a (diff)
Merge remote-tracking branch 'upstream/develop' into pts-settings
Diffstat (limited to 'src/displayapp/screens/Paddle.cpp')
-rw-r--r--src/displayapp/screens/Paddle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/screens/Paddle.cpp b/src/displayapp/screens/Paddle.cpp
index 3b6d60e..26c2368 100644
--- a/src/displayapp/screens/Paddle.cpp
+++ b/src/displayapp/screens/Paddle.cpp
@@ -47,8 +47,8 @@ void Paddle::Refresh() {
dy *= -1;
}
- // checks if it has touched the side (left side)
- if (ballX >= LV_VER_RES - ballSize - 1) {
+ // checks if it has touched the side (right side)
+ if (ballX >= LV_HOR_RES - ballSize - 1) {
dx *= -1;
}