diff options
| author | JF <JF002@users.noreply.github.com> | 2021-10-16 12:09:05 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-16 12:09:05 (GMT) |
| commit | fafb998b8cda05be07921c7e66e4bfa0c8cb5561 (patch) | |
| tree | 120ce17c9f7c1a05c46579ed2ff6397c7975f5b3 /src | |
| parent | c7abb3dd965264ec3f1d598c4b586489684042f9 (diff) | |
| parent | 7cd4929bfdb7f82778af8c3f6fed5fb107f1152b (diff) | |
Merge pull request #655 from NeroBurner/paddle_hor_fix
Paddle: compare ballX coordinate with horizontal resolution
Diffstat (limited to 'src')
| -rw-r--r-- | src/displayapp/screens/Paddle.cpp | 4 |
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; } |
