mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-03 04:41:43 +02:00
12 lines
367 B
Diff
12 lines
367 B
Diff
--- ./src/paddle.cpp.orig
|
|
+++ ./src/paddle.cpp
|
|
@@ -95,7 +95,7 @@
|
|
|
|
bool Paddle::mouseOver(TextArea& textarea, vec2& mouse) {
|
|
|
|
- if(pos.x <= mouse.x && pos.x + width >= mouse.x && abs(pos.y - mouse.y) < height/2) {
|
|
+ if(pos.x <= mouse.x && pos.x + width >= mouse.x && abs(int(pos.y) - int(mouse.y)) < height/2) {
|
|
|
|
std::vector<std::string> content;
|
|
|