Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Luc Peurière <jlp@nerim.net>2004-08-02 02:28:56 +0400
committerJean-Luc Peurière <jlp@nerim.net>2004-08-02 02:28:56 +0400
commit4b495e5e7bb19e55a610bba9a15811b4a5d03e68 (patch)
tree86d10d40f610b12f01f7c65ff8b1f6305f9e35de /source/blender/src/ghostwinlay.c
parentc11bb5b7ad73bf7076a51deba1338220aeded5ae (diff)
OS X fix:
those who work with visible dock where experimenting slowdown of UI when blender window was overlapping dock. now : - check available space excluding dock - create window with a 10 pixels border - maximised mode is only 1 click away This code is fixing only. Will review that when consensus will be found about how we should create the window.
Diffstat (limited to 'source/blender/src/ghostwinlay.c')
-rw-r--r--source/blender/src/ghostwinlay.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/src/ghostwinlay.c b/source/blender/src/ghostwinlay.c
index 954388b3db7..85571995b87 100644
--- a/source/blender/src/ghostwinlay.c
+++ b/source/blender/src/ghostwinlay.c
@@ -118,7 +118,6 @@ int checkAppleVideoCard() {
long value;
long maxvram = 0; /* we get always more than 1 renderer, check one, at least, has 8 Mo */
-
display_mask = CGDisplayIDToOpenGLDisplayMask (CGMainDisplayID() );
theErr = CGLQueryRendererInfo( display_mask, &rend, &nrend);
@@ -159,6 +158,17 @@ int checkAppleVideoCard() {
return 0;
}
+void getMacAvailableBounds(short *top, short *left, short *bottom, short *right) {
+ Rect outAvailableRect;
+
+ GetAvailableWindowPositioningBounds ( GetMainDevice(), &outAvailableRect);
+
+ *top = outAvailableRect.top;
+ *left = outAvailableRect.left;
+ *bottom = outAvailableRect.bottom;
+ *right = outAvailableRect.right;
+}
+
#endif