From b098d27d086733fad3d6c4e04385b73e0c123ef8 Mon Sep 17 00:00:00 2001 From: ZephyrLabs <65145081+ZephyrLabs@users.noreply.github.com> Date: Sun, 20 Dec 2020 09:23:31 +0530 Subject: [PATCH] Update Paddle.cpp tranparent paddle bug fix. --- src/displayapp/screens/Paddle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/displayapp/screens/Paddle.cpp b/src/displayapp/screens/Paddle.cpp index 36b81733..14ae2202 100644 --- a/src/displayapp/screens/Paddle.cpp +++ b/src/displayapp/screens/Paddle.cpp @@ -155,7 +155,7 @@ bool Paddle::Refresh() { } //checks if it is in the position of the paddle - if(BallY >= (PaddleBottomY + 16) && BallY <= (PaddleTopY - 8)){ + if(BallY <= (PaddleBottomY + 16) && BallY >= (PaddleTopY - 8)){ if(BallX >= 0 && BallX < 4){ lv_obj_set_pos(ball_image, 5, BallY); dx *= -1;