better windows painting in wxMGL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-10-13 22:49:57 +00:00
parent a9f994d915
commit b8c0528db3
5 changed files with 31 additions and 28 deletions

View File

@@ -43,17 +43,17 @@ void wxBell()
void wxDisplaySize(int *width, int *height)
{
wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
if (width) *width = g_displayDC->sizex();
if (height) *height = g_displayDC->sizey();
if (width) *width = g_displayDC->sizex()+1;
if (height) *height = g_displayDC->sizey()+1;
}
void wxDisplaySizeMM(int *width, int *height)
{
wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
if ( width )
*width = g_displayDC->sizex() * 25/72;
*width = (g_displayDC->sizex()+1) * 25/72;
if ( height )
*height = g_displayDC->sizey() * 25/72;
*height = (g_displayDC->sizey()+1) * 25/72;
// FIXME_MGL -- what about returning *real* monitor dimensions?
}