aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-08 11:49:30 +0100
committergingerBill <bill@gingerbill.org>2021-09-08 11:49:30 +0100
commit30554f4758fca8d0181f368b6efd7e5ffee7ffaa (patch)
treec9d8096b0717c71e6221a16b5d2b0a981320f63a
parent83bd7c73c4bae18ef3fed24f72885d969dfd3757 (diff)
Correct `PointInRect`
-rw-r--r--vendor/sdl2/sdl_rect.odin2
1 files changed, 1 insertions, 1 deletions
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)))
}