From e8581396cc7dd9102b086567b750dd886f439224 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Mon, 5 Aug 2024 13:39:37 +1000 Subject: [PATCH] use correct flag defines --- Sources/Voxelotl/Application.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/Voxelotl/Application.swift b/Sources/Voxelotl/Application.swift index b59f62a..6e9de9c 100644 --- a/Sources/Voxelotl/Application.swift +++ b/Sources/Voxelotl/Application.swift @@ -14,11 +14,9 @@ class Application { return .exitFailure } - let sdlWindowResizable: SDL_WindowFlags = 0x0000000000000020 - let sdlWindowHighPixelDensity: SDL_WindowFlags = 0x0000000000002000 window = SDL_CreateWindow("Voxelotl", Self.windowWidth, Self.windowHeight, - sdlWindowResizable | sdlWindowHighPixelDensity) + SDL_WindowFlags(SDL_WINDOW_RESIZABLE) | SDL_WindowFlags(SDL_WINDOW_HIGH_PIXEL_DENSITY)) guard window != nil else { print("SDL_CreateWindow() error: \(String(cString: SDL_GetError()))") return .exitFailure