Changeset 1297 for trunk/src/user32/oslibgdi.cpp
- Timestamp:
- Oct 14, 1999, 8:27:59 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibgdi.cpp
r1057 r1297 1 /* $Id: oslibgdi.cpp,v 1. 2 1999-09-26 10:09:59sandervl Exp $ */1 /* $Id: oslibgdi.cpp,v 1.3 1999-10-14 18:27:57 sandervl Exp $ */ 2 2 /* 3 3 * Window GDI wrapper functions for OS/2 … … 74 74 { 75 75 RECTLOS2 rectParent = {0}; 76 Win32BaseWindow *window; 77 LONG height; 76 78 77 79 if(hwndParent == OSLIB_HWND_DESKTOP) { … … 83 85 } 84 86 85 ULONG length = rectOS2->yTop - rectOS2->yBottom; 86 87 rectWin32->bottom = length - rectOS2->yBottom; 88 rectWin32->top = length - rectOS2->yTop; 87 if(hwndParent != HWND_DESKTOP) 88 { 89 window = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndParent); 90 if(window == NULL) 91 return FALSE; 92 height = window->getWindowHeight(); 93 } 94 else height = OSLibQueryScreenHeight(); 95 96 rectWin32->bottom = height - rectOS2->yBottom; 97 rectWin32->top = height - rectOS2->yTop; 89 98 rectWin32->left = rectOS2->xLeft; 90 99 rectWin32->right = rectOS2->xRight;
Note:
See TracChangeset
for help on using the changeset viewer.