From 6e2e9a9abde0bf20684594d88309b061fc125059 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 24 Oct 2002 19:13:47 +0000 Subject: [PATCH] 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 --- src/mac/carbon/utils.cpp | 6 +++++- src/mac/utils.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 1d0252c810..2ab9256cc5 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -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) diff --git a/src/mac/utils.cpp b/src/mac/utils.cpp index 1d0252c810..2ab9256cc5 100644 --- a/src/mac/utils.cpp +++ b/src/mac/utils.cpp @@ -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)