Merge pull request #4832 from bungoboingo/fix/sdl-window-bindings

Fix bindings for some window functions in SDL3
This commit is contained in:
gingerBill
2025-02-12 08:53:06 +00:00
committed by GitHub

View File

@@ -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 ---