mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
Fix window_get_scroll proc not returning loaded values
This commit is contained in:
Vendored
+2
-2
@@ -70,7 +70,7 @@ window_get_scroll :: proc "contextless" () -> (x, y: f64) {
|
|||||||
@(link_name="window_get_scroll")
|
@(link_name="window_get_scroll")
|
||||||
_window_get_scroll :: proc(scroll: ^[2]f64) ---
|
_window_get_scroll :: proc(scroll: ^[2]f64) ---
|
||||||
}
|
}
|
||||||
scroll := [2]f64{x, y}
|
scroll: [2]f64
|
||||||
_window_get_scroll(&scroll)
|
_window_get_scroll(&scroll)
|
||||||
return
|
return scroll.x, scroll.y
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user