reworked display mode stuff once again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,14 +42,14 @@ void wxBell()
|
||||
|
||||
void wxDisplaySize(int *width, int *height)
|
||||
{
|
||||
wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
|
||||
wxASSERT_MSG( g_displayDC, wxT("You must call wxApp::SetDisplayMode before using this function") );
|
||||
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.") );
|
||||
wxASSERT_MSG( g_displayDC, wxT("You must call wxApp::SetDisplayMode before using this function") );
|
||||
if ( width )
|
||||
*width = (g_displayDC->sizex()+1) * 25/72;
|
||||
if ( height )
|
||||
@@ -67,14 +67,14 @@ void wxClientDisplayRect(int *x, int *y, int *width, int *height)
|
||||
|
||||
bool wxColourDisplay()
|
||||
{
|
||||
wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
|
||||
wxASSERT_MSG( g_displayDC, wxT("You must call wxApp::SetDisplayMode before using this function") );
|
||||
|
||||
return (wxDisplayDepth() > 1);
|
||||
}
|
||||
|
||||
int wxDisplayDepth()
|
||||
{
|
||||
wxASSERT_MSG( g_displayDC, wxT("MGL display DC not created yet.") );
|
||||
wxASSERT_MSG( g_displayDC, wxT("You must call wxApp::SetDisplayMode before using this function") );
|
||||
|
||||
return g_displayDC->getBitsPerPixel();
|
||||
}
|
||||
|
Reference in New Issue
Block a user