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:
@@ -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?
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user