Correct PointInRect

This commit is contained in:
gingerBill
2021-09-08 11:49:30 +01:00
parent 83bd7c73c4
commit 30554f4758

View File

@@ -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)))
}