Bläddra i källkod

Updated projects/plists to allow icons on the actual device

Brandon Slack 14 år sedan
förälder
incheckning
c34e6ef909
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      gameplay/src/PlatformiOS.mm

+ 2 - 0
gameplay/src/PlatformiOS.mm

@@ -236,6 +236,7 @@ int getKey(unichar keyCode);
         displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(update:)];
         [displayLink setFrameInterval:swapInterval];
         [displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
+        _game->resume();
 		updating = TRUE;
 	}
 }
@@ -244,6 +245,7 @@ int getKey(unichar keyCode);
 {
 	if (updating)
 	{
+        _game->pause();
 		[displayLink invalidate];
         displayLink = nil;
 		updating = FALSE;