wxUSE_LOG fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2004-07-20 19:17:52 +00:00
parent f07941fc73
commit 924fe7dabe

View File

@ -171,9 +171,14 @@ void BombsCanvas::DrawField(wxDC *dc, int xc1, int yc1, int xc2, int yc2)
} }
dc->SetFont(wxNullFont); dc->SetFont(wxNullFont);
#if wxUSE_LOG wxString msg;
wxLogStatus(wxT("%d bombs %d remaining cells"), msg.Printf(wxT("%d bombs %d remaining cells"),
m_game->GetNumBombs(), m_game->GetNumRemainingCells() ); m_game->GetNumBombs(), m_game->GetNumRemainingCells() );
#if wxUSE_LOG && wxUSE_STATUSBAR
wxLogStatus(msg);
#else
this->GetParent()->SetTitle(msg);
#endif #endif
} }