Sfoglia il codice sorgente

The default implementation of [view layoutSubviews] actually does something in iOS 6+, so we should call [super layoutSubviews] when overriding it.

Alex Szpakowski 11 anni fa
parent
commit
e02e34521a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/video/uikit/SDL_uikitopenglview.m

+ 2 - 0
src/video/uikit/SDL_uikitopenglview.m

@@ -212,6 +212,8 @@
 
 
 - (void)layoutSubviews
 - (void)layoutSubviews
 {
 {
+    [super layoutSubviews];
+
     [EAGLContext setCurrentContext:context];
     [EAGLContext setCurrentContext:context];
     [self updateFrame];
     [self updateFrame];
 }
 }