Ignore:
Timestamp:
Oct 14, 1999, 8:27:59 PM (26 years ago)
Author:
sandervl
Message:

Lots of window fixes & changes

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:59 sandervl Exp $ */
     1/* $Id: oslibgdi.cpp,v 1.3 1999-10-14 18:27:57 sandervl Exp $ */
    22/*
    33 * Window GDI wrapper functions for OS/2
     
    7474{
    7575 RECTLOS2 rectParent = {0};
     76 Win32BaseWindow *window;
     77 LONG height;
    7678
    7779    if(hwndParent == OSLIB_HWND_DESKTOP) {
     
    8385    }
    8486
    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;
    8998    rectWin32->left   = rectOS2->xLeft;
    9099    rectWin32->right  = rectOS2->xRight;
Note: See TracChangeset for help on using the changeset viewer.