}
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
}
if ((prevGridFocusX != m_game->m_gridFocusX)
|| (prevGridFocusY != m_game->m_gridFocusY))
{
+ // cause focused field to be visible after first key hit after launching new game
+ if( m_game->m_gridFocusX < 0 ) m_game->m_gridFocusX = 0;
+ if( m_game->m_gridFocusY < 0 ) m_game->m_gridFocusY = 0;
+
// refresh previous field and focused field
RefreshField(prevGridFocusX, prevGridFocusY,
prevGridFocusX, prevGridFocusY);