X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05e0b047d879cdbfade7f2ab346c0acdf3e29f96..8d9eee83203dfc7177cd8639c14a5c809085698d:/demos/life/life.cpp diff --git a/demos/life/life.cpp b/demos/life/life.cpp index 13376c261c..3a256a67f2 100644 --- a/demos/life/life.cpp +++ b/demos/life/life.cpp @@ -38,7 +38,7 @@ // resources // -------------------------------------------------------------------------- -#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__) || defined(__WXX11__) +#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXX11__) // application icon #include "mondrian.xpm" @@ -163,9 +163,8 @@ bool LifeApp::OnInit() // create the main application window LifeFrame *frame = new LifeFrame(); - // show it and tell the application that it's our main window + // show it frame->Show(true); - SetTopWindow(frame); // just for Motif #ifdef __WXMOTIF__ @@ -354,10 +353,10 @@ void LifeFrame::UpdateInfoText() { wxString msg; - msg.Printf(_(" Generation: %u (T: %u ms), Population: %u "), + msg.Printf(_(" Generation: %lu (T: %lu ms), Population: %lu "), m_tics, m_topspeed? 0 : m_interval, - m_life->GetNumCells()); + static_cast(m_life->GetNumCells())); m_text->SetLabel(msg); }