VirtualBox

Changeset 21040 in vbox


Ignore:
Timestamp:
Jun 29, 2009 4:11:09 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49272
Message:

FE/Qt4-OSX: no 10.5 API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin-carbon.cpp

    r21034 r21040  
    147147         * Carbon directly. Calculate it by getting the full window size,
    148148         * 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);
    154154    }
    155155    return h;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette