git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45933
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFont font= BOMBS_FONT;
dc.SetFont(font);
- long chw, chh;
+ wxCoord chw, chh;
wxString buf = wxT("M");
dc.GetTextExtent(buf, &chw, &chh);
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"));
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;
// 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;
{
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);