mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 16:45:57 -05:00
Fixed compile in Xcode
This commit is contained in:
@@ -110,14 +110,10 @@ afterDelay:0.0];
|
||||
if (!_this) {
|
||||
return;
|
||||
}
|
||||
|
||||
int i;
|
||||
for (i = 0; i < _this->num_displays; i++) {
|
||||
const SDL_VideoDisplay *display = &_this->displays[i];
|
||||
SDL_Window *window;
|
||||
for (window = display->windows; window != nil; window = window->next) {
|
||||
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
|
||||
}
|
||||
|
||||
SDL_Window *window;
|
||||
for (window = _this->windows; window != nil; window = window->next) {
|
||||
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,14 +126,10 @@ afterDelay:0.0];
|
||||
if (!_this) {
|
||||
return;
|
||||
}
|
||||
|
||||
int i;
|
||||
for (i = 0; i < _this->num_displays; i++) {
|
||||
const SDL_VideoDisplay *display = &_this->displays[i];
|
||||
SDL_Window *window;
|
||||
for (window = display->windows; window != nil; window = window->next) {
|
||||
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
|
||||
}
|
||||
|
||||
SDL_Window *window;
|
||||
for (window = _this->windows; window != nil; window = window->next) {
|
||||
SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ UIKit_CreateWindow(_THIS, SDL_Window *window)
|
||||
UIScreen *uiscreen = (UIScreen *) display->driverdata;
|
||||
|
||||
// SDL currently puts this window at the start of display's linked list. We rely on this.
|
||||
SDL_assert(display->windows == window);
|
||||
SDL_assert(_this->windows == window);
|
||||
|
||||
/* We currently only handle a single window per display on iPhone */
|
||||
if (window->next != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user