mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 09:54:45 +00:00
Correct PointInRect
This commit is contained in:
2
vendor/sdl2/sdl_rect.odin
vendored
2
vendor/sdl2/sdl_rect.odin
vendored
@@ -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)))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user