Applied patch [ 861884 ] adjustement of bombs demo to wxBombsCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -340,6 +340,10 @@ void BombsCanvas::OnChar(wxKeyEvent& event)
|
||||
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);
|
||||
|
Reference in New Issue
Block a user