git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45933
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFont font= BOMBS_FONT;
dc.SetFont(font);
wxFont font= BOMBS_FONT;
dc.SetFont(font);
wxString buf = wxT("M");
dc.GetTextExtent(buf, &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;
void BombsCanvas::DrawField(wxDC *dc, int xc1, int yc1, int xc2, int yc2)
{
wxString buf;
wxColour wxYellow = wxTheColourDatabase->Find(wxT("YELLOW"));
wxColour wxFocused = wxTheColourDatabase->Find(wxT("GREY"));
wxColour wxYellow = wxTheColourDatabase->Find(wxT("YELLOW"));
wxColour wxFocused = wxTheColourDatabase->Find(wxT("GREY"));
m_pack->GetTopCardPos(x, y);
x += 12 * CardWidth - 105;
m_pack->GetTopCardPos(x, y);
x += 12 * CardWidth - 105;
dc.GetTextExtent(_T("Average score:m_x"), &width, &height);
w = width;
h = 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);
// See what ACTUAL char height is
if(m_normalFont)
dc->SetFont(*m_normalFont);
+ wxCoord xx;
+ wxCoord yy;
dc->GetTextExtent(_T("X"), &xx, &yy);
char_height = (int)yy;
dc->GetTextExtent(_T("X"), &xx, &yy);
char_height = (int)yy;
{
wxFont font(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
{
wxFont font(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
wxScreenDC dc;
dc.SetFont(font);
dc.GetTextExtent(str, & w, & h);
wxScreenDC dc;
dc.SetFont(font);
dc.GetTextExtent(str, & w, & h);