src/video/uikit/SDL_uikitwindow.m
branchiOS-improvements
changeset 9528 6915f7db6791
parent 9523 9cbd69cac7ed
child 9529 4bf9830d8153
     1.1 --- a/src/video/uikit/SDL_uikitwindow.m	Sun Nov 23 23:23:47 2014 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Sun Nov 23 23:29:24 2014 -0400
     1.3 @@ -41,21 +41,6 @@
     1.4  
     1.5  #include <Foundation/Foundation.h>
     1.6  
     1.7 -@implementation SDL_uikitwindow
     1.8 -
     1.9 -- (void)layoutSubviews
    1.10 -{
    1.11 -    [super layoutSubviews];
    1.12 -
    1.13 -    /* This seems to be needed on iOS 8, otherwise the window's frame is put in
    1.14 -     * an unexpected position when the screen or device is rotated.
    1.15 -     * FIXME: is there a better solution to that problem than this ugly hack?
    1.16 -     */
    1.17 -    self.frame = self.screen.bounds;
    1.18 -}
    1.19 -
    1.20 -@end
    1.21 -
    1.22  @implementation SDL_WindowData
    1.23  
    1.24  @synthesize uiwindow;
    1.25 @@ -65,7 +50,7 @@
    1.26  @end
    1.27  
    1.28  
    1.29 -static int SetupWindowData(_THIS, SDL_Window *window, SDL_uikitwindow *uiwindow, SDL_bool created)
    1.30 +static int SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bool created)
    1.31  {
    1.32      SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
    1.33      SDL_DisplayData *displaydata = (__bridge SDL_DisplayData *) display->driverdata;
    1.34 @@ -213,7 +198,7 @@
    1.35  
    1.36          /* ignore the size user requested, and make a fullscreen window */
    1.37          /* !!! FIXME: can we have a smaller view? */
    1.38 -        SDL_uikitwindow *uiwindow = [[SDL_uikitwindow alloc] initWithFrame:data.uiscreen.bounds];
    1.39 +        UIWindow *uiwindow = [[UIWindow alloc] initWithFrame:data.uiscreen.bounds];
    1.40  
    1.41          /* put the window on an external display if appropriate. This implicitly
    1.42           * does [uiwindow setframe:[uiscreen bounds]], so don't do it on the