X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ac8bd7b5347c31a0f4ff53aa0a3fcaa54ecb5ca..a42588069cc6400696d0cc88328f2c0aee2a7bdf:/demos/life/game.h?ds=sidebyside diff --git a/demos/life/game.h b/demos/life/game.h index 6693c2aeef..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" @@ -47,8 +43,8 @@ public: m_rules = rules; m_shape = shape; }; - - // A more convenient ctor for the built-in samples + + // A more convenient ctor for the built-in samples LifePattern(wxString name, wxString description, int width, @@ -57,8 +53,13 @@ public: { m_name = name; m_description = description; - m_rules = _(""); + 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; @@ -88,7 +89,7 @@ struct LifeCell { wxInt32 i; wxInt32 j; -}; +}; // A private class that contains data about a block of cells class LifeCellBox;