# HG changeset patch
# User unc0rr
# Date 1239999226 0
# Node ID 37c71f5983c9dc5a088ce23d7d8b5c925957c739
# Parent  d909152bdc21a382ab1b62979b4cbd9ba341db13
patch by koda:
 - Part of previous patch
 - Some flags for Mac OS X compilation

diff -r d909152bdc21 -r 37c71f5983c9 QTfrontend/hedgewars.pro
--- a/QTfrontend/hedgewars.pro	Fri Apr 17 19:58:21 2009 +0000
+++ b/QTfrontend/hedgewars.pro	Fri Apr 17 20:13:46 2009 +0000
@@ -8,6 +8,9 @@
 	RC_FILE	= ./res/hedgewars.rc
 }
 
+macx{
+	CONFIG += x86
+}
 QT += network svg xml
 
 HEADERS += binds.h \
@@ -109,4 +112,8 @@
 
 RESOURCES += hedgewars.qrc
 
+!macx{
 LIBS += libSDL
+}else{
+LIBS += -framework SDL -framework SDL_mixer -framework Ogg -framework Vorbis
+}
diff -r d909152bdc21 -r 37c71f5983c9 hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Fri Apr 17 19:58:21 2009 +0000
+++ b/hedgewars/uWorld.pas	Fri Apr 17 20:13:46 2009 +0000
@@ -417,7 +417,9 @@
       CountTicks:= 0;
       s:= inttostr(FPS) + ' fps';
       if fpsTexture <> nil then FreeTexture(fpsTexture);
+{$IFNDEF IPHONE}
       tmpSurface:= TTF_RenderUTF8_Blended(Fontz[fnt16].Handle, Str2PChar(s), $FFFFFF);
+{$ENDIF}
       fpsTexture:= Surface2Tex(tmpSurface);
       SDL_FreeSurface(tmpSurface)
       end;