update sdl Merge commit '4d48f9d23713d94b861da7b5d41baf2a41334994'
This commit is contained in:
@@ -255,7 +255,7 @@ static void Cocoa_DispatchEvent(NSEvent *theEvent)
|
||||
SDL_Window *window = device->windows;
|
||||
int i;
|
||||
for (i = 0; i < device->num_displays; ++i) {
|
||||
SDL_Window *fullscreen_window = device->displays[i].fullscreen_window;
|
||||
SDL_Window *fullscreen_window = device->displays[i]->fullscreen_window;
|
||||
if (fullscreen_window) {
|
||||
if (fullscreen_window->flags & SDL_WINDOW_MINIMIZED) {
|
||||
SDL_RestoreWindow(fullscreen_window);
|
||||
|
@@ -520,7 +520,7 @@ void Cocoa_QuitModes(SDL_VideoDevice *_this)
|
||||
int i, j;
|
||||
|
||||
for (i = 0; i < _this->num_displays; ++i) {
|
||||
SDL_VideoDisplay *display = &_this->displays[i];
|
||||
SDL_VideoDisplay *display = _this->displays[i];
|
||||
SDL_DisplayModeData *mode;
|
||||
|
||||
if (display->current_mode->driverdata != display->desktop_mode.driverdata) {
|
||||
|
@@ -2467,9 +2467,9 @@ SDL_DisplayID Cocoa_GetDisplayForWindow(SDL_VideoDevice *_this, SDL_Window *wind
|
||||
displayid = [[screen.deviceDescription objectForKey:@"NSScreenNumber"] unsignedIntValue];
|
||||
|
||||
for (i = 0; i < _this->num_displays; i++) {
|
||||
SDL_DisplayData *displaydata = _this->displays[i].driverdata;
|
||||
SDL_DisplayData *displaydata = _this->displays[i]->driverdata;
|
||||
if (displaydata != NULL && displaydata->display == displayid) {
|
||||
return _this->displays[i].id;
|
||||
return _this->displays[i]->id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user