mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-09 02:39:42 +00:00
cocoa: Fix -Wimplicit-retain-self warning in SDL_cocoawindow
SDL3/src/video/cocoa/SDL_cocoawindow.m:1149:38: error: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Werror,-Wimplicit-retain-self] 1149 | SDL_OnWindowLiveResizeUpdate(_data.window);
This commit is contained in:
@@ -1146,7 +1146,7 @@ static NSCursor *Cocoa_GetDesiredCursor(void)
|
||||
repeats:TRUE
|
||||
block:^(NSTimer *unusedTimer)
|
||||
{
|
||||
SDL_OnWindowLiveResizeUpdate(_data.window);
|
||||
SDL_OnWindowLiveResizeUpdate(self->_data.window);
|
||||
}];
|
||||
|
||||
[[NSRunLoop currentRunLoop] addTimer:liveResizeTimer forMode:NSRunLoopCommonModes];
|
||||
|
||||
Reference in New Issue
Block a user