X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d2ac6b8c652a4aac703ba03f143820e978b33d4..dedf5d9f66a309691a4459efe9c1244bfb8c71af:/demos/life/game.h diff --git a/demos/life/game.h b/demos/life/game.h index 323fd2b06f..0a4860f100 100644 --- a/demos/life/game.h +++ b/demos/life/game.h @@ -12,10 +12,6 @@ #ifndef _LIFE_GAME_H_ #define _LIFE_GAME_H_ -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma interface "game.h" -#endif - // for compilers that support precompilation, includes "wx/wx.h" #include "wx/wxprec.h" @@ -58,7 +54,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;