From 30554f4758fca8d0181f368b6efd7e5ffee7ffaa Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 8 Sep 2021 11:49:30 +0100 Subject: [PATCH] Correct `PointInRect` --- vendor/sdl2/sdl_rect.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/sdl2/sdl_rect.odin b/vendor/sdl2/sdl_rect.odin index ad09b187a..6f06d88ec 100644 --- a/vendor/sdl2/sdl_rect.odin +++ b/vendor/sdl2/sdl_rect.odin @@ -28,7 +28,7 @@ FRect :: struct { w, h: f32, } -PointInRect :: proc(p, r: ^Rect) -> bool { +PointInRect :: proc(p: ^Point, r: ^Rect) -> bool { return bool((p.x >= r.x) && (p.x < (r.x + r.w)) && (p.y >= r.y) && (p.y < (r.y + r.h))) }