From: Vadim Zeitlin Date: Thu, 10 May 2007 01:46:57 +0000 (+0000) Subject: replaced more int/longs with wxCoord X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f3a8b1b68e98ea169e72c97778418440a43f52db replaced more int/longs with wxCoord git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/demos/bombs/bombs.cpp b/demos/bombs/bombs.cpp index 1f4ef00c3f..83e4652fca 100644 --- a/demos/bombs/bombs.cpp +++ b/demos/bombs/bombs.cpp @@ -233,7 +233,7 @@ BombsCanvas::BombsCanvas(wxFrame *parent, BombsGame *game) wxFont font= BOMBS_FONT; dc.SetFont(font); - long chw, chh; + wxCoord chw, chh; wxString buf = wxT("M"); dc.GetTextExtent(buf, &chw, &chh); diff --git a/demos/bombs/bombs1.cpp b/demos/bombs/bombs1.cpp index 441e3ce0a0..19549cb882 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")); diff --git a/demos/forty/game.cpp b/demos/forty/game.cpp index e95954131e..dcf32e42b1 100644 --- a/demos/forty/game.cpp +++ b/demos/forty/game.cpp @@ -233,9 +233,9 @@ void Game::DisplayScore(wxDC& dc) m_pack->GetTopCardPos(x, y); x += 12 * CardWidth - 105; - int w, h; + wxCoord w, h; { - long width, height; + wxCoord width, height; dc.GetTextExtent(_T("Average score:m_x"), &width, &height); w = width; h = height; diff --git a/demos/poem/wxpoem.cpp b/demos/poem/wxpoem.cpp index 7464f76cd1..2234c07cc0 100644 --- a/demos/poem/wxpoem.cpp +++ b/demos/poem/wxpoem.cpp @@ -179,8 +179,8 @@ void MainWindow::ScanBuffer(wxDC *dc, bool DrawIt, int *max_x, int *max_y) // See what ACTUAL char height is if(m_normalFont) dc->SetFont(*m_normalFont); - long xx; - long yy; + wxCoord xx; + wxCoord yy; dc->GetTextExtent(_T("X"), &xx, &yy); char_height = (int)yy; diff --git a/src/msw/dragimag.cpp b/src/msw/dragimag.cpp index 2cb08d63d3..4f42ad81d9 100644 --- a/src/msw/dragimag.cpp +++ b/src/msw/dragimag.cpp @@ -205,7 +205,7 @@ bool wxDragImage::Create(const wxString& str, const wxCursor& cursor) { wxFont font(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT)); - long w = 0, h = 0; + wxCoord w = 0, h = 0; wxScreenDC dc; dc.SetFont(font); dc.GetTextExtent(str, & w, & h);