Changeset 49868 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Dec 10, 2013 2:49:04 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/VBox-4.3 (added) merged: 91223 /branches/VBox-4.3/trunk (added) merged: 91223
- Property svn:mergeinfo changed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/VBox-4.3/src/VBox (added) merged: 91223 /branches/VBox-4.3/trunk/src/VBox (added) merged: 91223
- Property svn:mergeinfo changed
-
trunk/src/VBox/HostServices/SharedOpenGL/LICENSE
- Property svn:mergeinfo changed
/branches/VBox-4.3/src/VBox/HostServices/SharedOpenGL/LICENSE (added) merged: 91223 /branches/VBox-4.3/trunk/src/VBox/HostServices/SharedOpenGL/LICENSE (added) merged: 91223
- Property svn:mergeinfo changed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r49294 r49868 950 950 951 951 DEBUG_MSG(("OVIW(%p): reshape\n", (void*)self)); 952 953 /* Getting the right screen coordinates of the parents frame is a little bit 954 * complicated. */ 952 955 953 parentFrame = [m_pParentView frame]; 956 parentPos = [[m_pParentView window] convertBaseToScreen:[[m_pParentView superview] convertPointToBase:NSMakePoint(parentFrame.origin.x, parentFrame.origin.y + parentFrame.size.height)]]; 957 parentFrame.origin.x = parentPos.x; 958 parentFrame.origin.y = parentPos.y; 959 960 /* Calculate the new screen coordinates of the overlay window. */ 954 DEBUG_MSG(("FIXED parentFrame [%f:%f], [%f:%f]\n", parentFrame.origin.x, parentFrame.origin.y, parentFrame.size.width, parentFrame.size.height)); 955 parentPos = parentFrame.origin; 956 parentPos.y += parentFrame.size.height; 957 DEBUG_MSG(("FIXED(view) parentPos [%f:%f]\n", parentPos.x, parentPos.y)); 958 parentPos = [m_pParentView convertPoint:parentPos toView:nil]; 959 DEBUG_MSG(("FIXED parentPos(win) [%f:%f]\n", parentPos.x, parentPos.y)); 960 parentPos = [[m_pParentView window] convertBaseToScreen:parentPos]; 961 DEBUG_MSG(("FIXED parentPos(screen) [%f:%f]\n", parentPos.x, parentPos.y)); 962 parentFrame.origin = parentPos; 963 961 964 childPos = NSMakePoint(m_Pos.x, m_Pos.y + m_Size.height); 962 childPos = [[m_pParentView window] convertBaseToScreen:[[m_pParentView superview] convertPointToBase:childPos]]; 963 964 /* Make a frame out of it. */ 965 DEBUG_MSG(("FIXED(view) childPos [%f:%f]\n", childPos.x, childPos.y)); 966 childPos = [m_pParentView convertPoint:childPos toView:nil]; 967 DEBUG_MSG(("FIXED(win) childPos [%f:%f]\n", childPos.x, childPos.y)); 968 childPos = [[m_pParentView window] convertBaseToScreen:childPos]; 969 DEBUG_MSG(("FIXED childPos(screen) [%f:%f]\n", childPos.x, childPos.y)); 965 970 childFrame = NSMakeRect(childPos.x, childPos.y, m_Size.width, m_Size.height); 971 DEBUG_MSG(("FIXED childFrame [%f:%f], [%f:%f]\n", childFrame.origin.x, childFrame.origin.y, childFrame.size.width, childFrame.size.height)); 966 972 967 973 /* We have to make sure that the overlay window will not be displayed out … … 983 989 newFrame.origin.x, newFrame.origin.y, 984 990 newFrame.size.width, newFrame.size.height)); 985 991 986 992 /* Later we have to correct the texture position in the case the window is 987 993 * out of the parents window frame. So save the shift values for later use. */
Note:
See TracChangeset
for help on using the changeset viewer.