]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUSE_LOG fixes.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 20 Jul 2004 19:17:52 +0000 (19:17 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 20 Jul 2004 19:17:52 +0000 (19:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/bombs/bombs1.cpp

index 9853fa7fff43fe0bc3b7e4f8b851ee4f5556d46c..aa4bb3ced3c782e8dbf244642d8c6e534636ed7b 100644 (file)
@@ -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
 }