From 9bf0b386ab8dbdef055ec05526f74e0a70e12378 Mon Sep 17 00:00:00 2001 From: shan Date: Tue, 11 Feb 2025 17:50:20 -0800 Subject: [PATCH] Fix bindings for some window functions in SDL3 --- vendor/sdl3/sdl3_video.odin | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vendor/sdl3/sdl3_video.odin b/vendor/sdl3/sdl3_video.odin index 13952a8cd43..3be912d15fa 100644 --- a/vendor/sdl3/sdl3_video.odin +++ b/vendor/sdl3/sdl3_video.odin @@ -342,13 +342,13 @@ foreign lib { GetCurrentDisplayMode :: proc(displayID: DisplayID) -> ^DisplayMode --- GetDisplayForPoint :: proc(#by_ptr point: Point) -> DisplayID --- GetDisplayForRect :: proc(#by_ptr rect: Rect) -> DisplayID --- - GetDisplayForWindow :: proc(window: Window) -> DisplayID --- - GetWindowPixelDensity :: proc(window: Window) -> f32 --- - GetWindowDisplayScale :: proc(window: Window) -> f32 --- - SetWindowFullscreenMode :: proc(window: Window, #by_ptr mode: DisplayMode) -> bool --- - GetWindowFullscreenMode :: proc(window: Window) -> ^DisplayMode --- - GetWindowICCProfile :: proc(window: Window, size: ^uint) -> rawptr --- - GetWindowPixelFormat :: proc(window: Window) -> PixelFormat --- + GetDisplayForWindow :: proc(window: ^Window) -> DisplayID --- + GetWindowPixelDensity :: proc(window: ^Window) -> f32 --- + GetWindowDisplayScale :: proc(window: ^Window) -> f32 --- + SetWindowFullscreenMode :: proc(window: ^Window, #by_ptr mode: DisplayMode) -> bool --- + GetWindowFullscreenMode :: proc(window: ^Window) -> ^DisplayMode --- + GetWindowICCProfile :: proc(window: ^Window, size: ^uint) -> rawptr --- + GetWindowPixelFormat :: proc(window: ^Window) -> PixelFormat --- GetWindows :: proc(count: ^c.int) -> [^]^Window --- CreateWindow :: proc(title: cstring, w, h: c.int, flags: WindowFlags) -> ^Window --- CreatePopupWindow :: proc(parent: ^Window, offset_x, offset_y: c.int, w, h: c.int, flags: WindowFlags) -> ^Window ---