Fixed compile in Xcode

This commit is contained in:
Sam Lantinga
2011-02-11 10:18:34 -08:00
parent 7e3a76e238
commit 65eb03e87b
4 changed files with 13 additions and 43 deletions

View File

@@ -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);
}
}

View File

@@ -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) {