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