wxASSERT_MSG( g_displayDC, wxT("You must call wxApp::SetDisplayMode before using this function") );
int xDPI, yDPI;
- MGL_getDotsPerInch(&xDPI, &yDPI);
-
- if ( width )
+ MGL_getDotsPerInch(&xDPI, &yDPI);
+
+ if ( width )
*width = (int)((g_displayDC->sizex()+1) * 25.4 / xDPI);
- if ( height )
+ if ( height )
*height = (int)((g_displayDC->sizey()+1) * 25.4 / yDPI);
}
bool wxColourDisplay()
{
wxASSERT_MSG( g_displayDC, wxT("You must call wxApp::SetDisplayMode before using this function") );
-
+
return (wxDisplayDepth() > 1);
}