X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23290a8c8fac977fba004f9a614142e0521d05db..d841895246c188d722bae08e9f37c7270bc56ea8:/demos/bombs/bombs1.cpp diff --git a/demos/bombs/bombs1.cpp b/demos/bombs/bombs1.cpp index 9853fa7fff..aa4bb3ced3 100644 --- a/demos/bombs/bombs1.cpp +++ b/demos/bombs/bombs1.cpp @@ -171,9 +171,14 @@ void BombsCanvas::DrawField(wxDC *dc, int xc1, int yc1, int xc2, int yc2) } dc->SetFont(wxNullFont); -#if wxUSE_LOG - wxLogStatus(wxT("%d bombs %d remaining cells"), + wxString msg; + msg.Printf(wxT("%d bombs %d remaining cells"), m_game->GetNumBombs(), m_game->GetNumRemainingCells() ); + +#if wxUSE_LOG && wxUSE_STATUSBAR + wxLogStatus(msg); +#else + this->GetParent()->SetTitle(msg); #endif }