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: Update Paddle.cpp tranparent paddle bug fix. diff --git a/src/displayapp/screens/Paddle.cpp b/src/displayapp/screens/Paddle.cpp index 36b8173..14ae220 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; -- cgit v0.10.2