Przeglądaj źródła

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

Fix bindings for some window functions in SDL3
gingerBill 7 miesięcy temu
rodzic
commit
4c4b481ccc
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      vendor/sdl3/sdl3_video.odin

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