changed wxDisplaySize to return the entire size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2002-10-24 19:13:47 +00:00
parent 42b2b3947f
commit 6e2e9a9abd
2 changed files with 10 additions and 2 deletions

View File

@@ -461,7 +461,11 @@ int wxDisplayDepth()
// Get size of display
void wxDisplaySize(int *width, int *height)
{
wxClientDisplayRect( NULL , NULL , width , height ) ;
BitMap screenBits;
GetQDGlobalsScreenBits( &screenBits );
*width = screenBits.bounds.right - screenBits.bounds.left ;
*height = screenBits.bounds.bottom - screenBits.bounds.top ;
}
void wxDisplaySizeMM(int *width, int *height)

View File

@@ -461,7 +461,11 @@ int wxDisplayDepth()
// Get size of display
void wxDisplaySize(int *width, int *height)
{
wxClientDisplayRect( NULL , NULL , width , height ) ;
BitMap screenBits;
GetQDGlobalsScreenBits( &screenBits );
*width = screenBits.bounds.right - screenBits.bounds.left ;
*height = screenBits.bounds.bottom - screenBits.bounds.top ;
}
void wxDisplaySizeMM(int *width, int *height)