patch by koda:
authorunc0rr
Fri, 17 Apr 2009 20:13:46 +0000
changeset 2002 37c71f5983c9
parent 2001 d909152bdc21
child 2003 41b3d00949ca
patch by koda: - Part of previous patch - Some flags for Mac OS X compilation
QTfrontend/hedgewars.pro
hedgewars/uWorld.pas
--- 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
+}
--- 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;