src/video/uikit/SDL_uikitwindow.m
changeset 5251 1b0de3574c58
parent 5249 7a963be087ef
child 5262 b530ef003506
equal deleted inserted replaced
5250:f908e06b3c96 5251:1b0de3574c58
    88 {
    88 {
    89     SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
    89     SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
    90     UIScreen *uiscreen = (UIScreen *) display->driverdata;
    90     UIScreen *uiscreen = (UIScreen *) display->driverdata;
    91 
    91 
    92     // SDL currently puts this window at the start of display's linked list. We rely on this.
    92     // SDL currently puts this window at the start of display's linked list. We rely on this.
    93     SDL_assert(display->windows == window);
    93     SDL_assert(_this->windows == window);
    94 
    94 
    95     /* We currently only handle a single window per display on iPhone */
    95     /* We currently only handle a single window per display on iPhone */
    96     if (window->next != NULL) {
    96     if (window->next != NULL) {
    97         SDL_SetError("Only one window allowed per display.");
    97         SDL_SetError("Only one window allowed per display.");
    98         return -1;
    98         return -1;