aboutsummaryrefslogtreecommitdiffstats
path: root/community/logstalgia/gcc6-fix.patch
blob: 1033af44a989a57fea04fe1700b2bc9d5450208d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./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;