mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
update SDL3 codepaths to work with 3.1.
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ void setWindowSRGBColorSpace(SDL_Window *window)
|
||||
{
|
||||
#if SDL_VERSION_ATLEAST(3, 0, 0)
|
||||
SDL_PropertiesID props = SDL_GetWindowProperties(window);
|
||||
NSWindow *window = (__bridge NSWindow *) SDL_GetProperty(props, SDL_PROP_WINDOW_COCOA_WINDOW_POINTER, nullptr);
|
||||
NSWindow *window = (__bridge NSWindow *) SDL_GetPointerProperty(props, SDL_PROP_WINDOW_COCOA_WINDOW_POINTER, nullptr);
|
||||
window.colorSpace = [NSColorSpace sRGBColorSpace];
|
||||
#else
|
||||
SDL_SysWMinfo info = {};
|
||||
|
||||
Reference in New Issue
Block a user