Selaa lähdekoodia

Correct `PointInRect`

gingerBill 3 vuotta sitten
vanhempi
commit
30554f4758
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      vendor/sdl2/sdl_rect.odin

+ 1 - 1
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)))
 }