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:
@@ -461,7 +461,11 @@ int wxDisplayDepth()
|
|||||||
// Get size of display
|
// Get size of display
|
||||||
void wxDisplaySize(int *width, int *height)
|
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)
|
void wxDisplaySizeMM(int *width, int *height)
|
||||||
|
@@ -461,7 +461,11 @@ int wxDisplayDepth()
|
|||||||
// Get size of display
|
// Get size of display
|
||||||
void wxDisplaySize(int *width, int *height)
|
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)
|
void wxDisplaySizeMM(int *width, int *height)
|
||||||
|
Reference in New Issue
Block a user