mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
Fix window_get_scroll proc not returning loaded values
This commit is contained in:
1 parent
9cb02aa51d
commit
a263da0bbe
1 file changed
+2
-2
Vendored
+2
-2
@@ -70,7 +70,7 @@ window_get_scroll :: proc "contextless" () -> (x, y: f64) {
|
||||
@(link_name="window_get_scroll")
|
||||
_window_get_scroll :: proc(scroll: ^[2]f64) ---
|
||||
}
|
||||
scroll := [2]f64{x, y}
|
||||
scroll: [2]f64
|
||||
_window_get_scroll(&scroll)
|
||||
return
|
||||
return scroll.x, scroll.y
|
||||
}
|
||||
Reference in new issue
Block a user