Fix mouse in rectangle test

This commit is contained in:
Matthias Richter 2016-01-03 19:15:57 +01:00
parent cd88aa2008
commit 946099e93d

View file

@ -64,7 +64,7 @@ end
-- mouse handling
function suit:mouseInRect(x,y,w,h)
return self.mouse_x >= x and self.mouse_y >= y and
self.mouse_x <= x+w and self.mouse_y > y+h
self.mouse_x <= x+w and self.mouse_y <= y+h
end
function suit:registerMouseHit(id, ul_x, ul_y, hit)