]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/life/game.h
rebaked after propgrid sample addition
[wxWidgets.git] / demos / life / game.h
index 7c7b6aff3782fc68cece9dc561c7966e87cfef9c..2b5b548f0e1c0b8cefc967a7014ca92dbbd8b886 100644 (file)
 #ifndef _LIFE_GAME_H_
 #define _LIFE_GAME_H_
 
-// for compilers that support precompilation, includes "wx/wx.h"
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-    #pragma hdrstop
-#endif
-
-// for all others, include the necessary headers
-#ifndef WX_PRECOMP
-    #include "wx/wx.h"
-#endif
-
 // --------------------------------------------------------------------------
 // LifePattern
 // --------------------------------------------------------------------------
@@ -54,7 +42,12 @@ public:
         m_name        = name;
         m_description = description;
         m_rules       = wxEmptyString;
+        // TODO: add the positions later, since the formatting command
+        // causes a crash due to conversion objects not being available
+        // during initialisation.
+#ifndef __WXMAC__
         m_shape.Add( wxString::Format(_T("%i %i"), -width/2, -height/2) );
+#endif
         for(int j = 0; j < height; j++)
         {
             wxString tmp;