src/video/uikit/SDL_uikitopenglview.m
changeset 6686 45014250760c
parent 6435 6172658e3ce9
child 6885 700f1b25f77f
equal deleted inserted replaced
6685:8faee8f46165 6686:45014250760c
    20 */
    20 */
    21 #include "SDL_config.h"
    21 #include "SDL_config.h"
    22 
    22 
    23 #if SDL_VIDEO_DRIVER_UIKIT
    23 #if SDL_VIDEO_DRIVER_UIKIT
    24 
    24 
    25 #import <QuartzCore/QuartzCore.h>
    25 #include <QuartzCore/QuartzCore.h>
    26 #import <OpenGLES/EAGLDrawable.h>
    26 #include <OpenGLES/EAGLDrawable.h>
    27 #import "SDL_uikitopenglview.h"
    27 #include "SDL_uikitopenglview.h"
       
    28 #include "SDL_uikitmessagebox.h"
    28 
    29 
    29 
    30 
    30 @implementation SDL_uikitopenglview
    31 @implementation SDL_uikitopenglview
    31 
    32 
    32 @synthesize context;
    33 @synthesize context;
   178     displayLink = nil;
   179     displayLink = nil;
   179 }
   180 }
   180 
   181 
   181 - (void)doLoop:(id)sender
   182 - (void)doLoop:(id)sender
   182 {
   183 {
   183     animationCallback(animationCallbackParam);
   184     // Don't run the game loop while a messagebox is up
       
   185     if (!UIKit_ShowingMessageBox()) {
       
   186         animationCallback(animationCallbackParam);
       
   187     }
   184 }
   188 }
   185 
   189 
   186 - (void)setCurrentContext
   190 - (void)setCurrentContext
   187 {
   191 {
   188     [EAGLContext setCurrentContext:context];
   192     [EAGLContext setCurrentContext:context];