]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/utils.cpp
Corrected accidental pointer arithmetic in ClientToScreen and vice versa
[wxWidgets.git] / src / mac / utils.cpp
index 1d0252c810528312d92951151e21127f8bea160f..2ab9256cc5c43afe5e6814c9bfa7a9efbcf451b4 100644 (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)