src/video/uikit/SDL_uikitviewcontroller.m
changeset 6044 35448a5ea044
parent 6011 83a21d3bd5c1
child 6077 ee00e4b80f79
equal deleted inserted replaced
6043:46d78e48ae8b 6044:35448a5ea044
     1 /*
     1 /*
     2  Simple DirectMedia Layer
     2   Simple DirectMedia Layer
     3  Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
     3   Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
     4 
     4 
     5  This software is provided 'as-is', without any express or implied
     5   This software is provided 'as-is', without any express or implied
     6  warranty.  In no event will the authors be held liable for any damages
     6   warranty.  In no event will the authors be held liable for any damages
     7  arising from the use of this software.
     7   arising from the use of this software.
     8 
     8 
     9  Permission is granted to anyone to use this software for any purpose,
     9   Permission is granted to anyone to use this software for any purpose,
    10  including commercial applications, and to alter it and redistribute it
    10   including commercial applications, and to alter it and redistribute it
    11  freely, subject to the following restrictions:
    11   freely, subject to the following restrictions:
    12 
    12 
    13  1. The origin of this software must not be misrepresented; you must not
    13   1. The origin of this software must not be misrepresented; you must not
    14  claim that you wrote the original software. If you use this software
    14      claim that you wrote the original software. If you use this software
    15  in a product, an acknowledgment in the product documentation would be
    15      in a product, an acknowledgment in the product documentation would be
    16  appreciated but is not required.
    16      appreciated but is not required.
    17  2. Altered source versions must be plainly marked as such, and must not be
    17   2. Altered source versions must be plainly marked as such, and must not be
    18  misrepresented as being the original software.
    18      misrepresented as being the original software.
    19  3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20  */
    20 */
    21 #include "SDL_config.h"
    21 #include "SDL_config.h"
       
    22 
       
    23 #if SDL_VIDEO_DRIVER_UIKIT
    22 
    24 
    23 #include "SDL_video.h"
    25 #include "SDL_video.h"
    24 #include "SDL_assert.h"
    26 #include "SDL_assert.h"
    25 #include "SDL_hints.h"
    27 #include "SDL_hints.h"
    26 #include "../SDL_sysvideo.h"
    28 #include "../SDL_sysvideo.h"
   148     [uiwindow setFrame:frame];
   150     [uiwindow setFrame:frame];
   149     [data->view updateFrame];
   151     [data->view updateFrame];
   150     SDL_SendWindowEvent(self->window, SDL_WINDOWEVENT_RESIZED, w, h);
   152     SDL_SendWindowEvent(self->window, SDL_WINDOWEVENT_RESIZED, w, h);
   151 }
   153 }
   152 
   154 
       
   155 #endif /* SDL_VIDEO_DRIVER_UIKIT */
       
   156 
   153 @end
   157 @end