mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 07:43:13 +00:00
Update os_sdl2.odin
This commit is contained in:
2
vendor/wgpu/examples/sdl2/os_sdl2.odin
vendored
2
vendor/wgpu/examples/sdl2/os_sdl2.odin
vendored
@@ -76,12 +76,10 @@ os_get_surface :: proc(os: ^OS, instance: wgpu.Instance) -> wgpu.Surface {
|
||||
|
||||
@(private="file")
|
||||
size_callback :: proc "c" (userdata: rawptr, event: ^sdl2.Event) -> c.int {
|
||||
|
||||
if event.type == .WINDOWEVENT {
|
||||
if event.window.event == .SIZE_CHANGED || event.window.event == .RESIZED {
|
||||
resize()
|
||||
}
|
||||
}
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user