Changeset 21040 in vbox
- Timestamp:
- Jun 29, 2009 4:11:09 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49272
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin-carbon.cpp
r21034 r21040 147 147 * Carbon directly. Calculate it by getting the full window size, 148 148 * without the titlebar height & the content height. */ 149 HIRect win, win1, win2;150 if (OSStatus result = :: HIWindowGetBounds (aWindow, kWindowStructureRgn, kHICoordSpaceWindow, &win) == noErr)151 if((result = :: HIWindowGetBounds (aWindow, kWindowTitleBarRgn, kHICoordSpaceWindow, &win1)) == noErr)152 if ((result = :: HIWindowGetBounds (aWindow, kWindowContentRgn, kHICoordSpaceWindow, &win2)) == noErr)153 h = win.size.height - win1.size.height - win2.size.height;149 Rect win, win1, win2; 150 if (OSStatus result = ::GetWindowBounds (aWindow, kWindowStructureRgn, &win) == noErr) 151 if((result = ::GetWindowBounds (aWindow, kWindowTitleBarRgn, &win1)) == noErr) 152 if ((result = ::GetWindowBounds (aWindow, kWindowContentRgn, &win2)) == noErr) 153 h = (win.bottom-win.top) - (win1.bottom-win1.top) - (win2.bottom-win2.top); 154 154 } 155 155 return h;
Note:
See TracChangeset
for help on using the changeset viewer.