--- a/hedgewars/hwengine.dpr Thu Jun 18 17:35:34 2009 +0000
+++ b/hedgewars/hwengine.dpr Thu Jun 18 17:48:06 2009 +0000
@@ -118,6 +118,8 @@
end;
SDL_GL_SwapBuffers();
+{$IFNDEF IPHONEOS}
+//not going to make captures on the iPhone
if flagMakeCapture then
begin
flagMakeCapture:= false;
@@ -126,6 +128,7 @@
MakeScreenshot(s);
// SDL_SaveBMP_RW(SDLPrimSurface, SDL_RWFromFile(Str2PChar(s), 'wb'), 1)
end;
+{$ENDIF}
end;
////////////////////
@@ -138,7 +141,10 @@
SendKB;
CloseIPC;
TTF_Quit;
+{$IFNDEF IPHONEOS}
+//i know it is not clean but it is better than a crash
SDL_Quit;
+{$ENDIF}
halt
end;