X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..d9307d006e88025e28457290c9997f7c0f7c4fdc:/demos/bombs/bombs1.cpp?ds=inline diff --git a/demos/bombs/bombs1.cpp b/demos/bombs/bombs1.cpp index 441e3ce0a0..fcb4bf4201 100644 --- a/demos/bombs/bombs1.cpp +++ b/demos/bombs/bombs1.cpp @@ -32,7 +32,7 @@ void BombsCanvas::DrawField(wxDC *dc, int xc1, int yc1, int xc2, int yc2) { wxString buf; - long chw, chh; + wxCoord chw, chh; wxColour wxYellow = wxTheColourDatabase->Find(wxT("YELLOW")); wxColour wxFocused = wxTheColourDatabase->Find(wxT("GREY")); @@ -131,7 +131,7 @@ void BombsCanvas::DrawField(wxDC *dc, int xc1, int yc1, int xc2, int yc2) dc->SetBrush(*focusedBrush); else if (m_game->IsSelected(x,y)) dc->SetBrush(*wxWHITE_BRUSH); - else + else dc->SetBrush(*yellowBrush); dc->DrawRectangle( x*m_cellWidth*X_UNIT, y*m_cellHeight*Y_UNIT, m_cellWidth*X_UNIT+1, m_cellHeight*Y_UNIT+1); @@ -163,7 +163,7 @@ void BombsCanvas::DrawField(wxDC *dc, int xc1, int yc1, int xc2, int yc2) wxString msg; msg.Printf(wxT("%d bombs, %u marked, %d remaining cells"), - m_game->GetNumBombs(), m_game->GetNumMarkedCells(), + m_game->GetNumBombs(), m_game->GetNumMarkedCells(), m_game->GetNumRemainingCells() ); #if wxUSE_LOG && wxUSE_STATUSBAR