Skip to content

Commit fafb998

Browse files
authored
Merge pull request #655 from NeroBurner/paddle_hor_fix
Paddle: compare ballX coordinate with horizontal resolution
2 parents c7abb3d + 7cd4929 commit fafb998

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/displayapp/screens/Paddle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ void Paddle::Refresh() {
4747
dy *= -1;
4848
}
4949

50-
// checks if it has touched the side (left side)
51-
if (ballX >= LV_VER_RES - ballSize - 1) {
50+
// checks if it has touched the side (right side)
51+
if (ballX >= LV_HOR_RES - ballSize - 1) {
5252
dx *= -1;
5353
}
5454

0 commit comments

Comments
 (0)