Ignore:
Timestamp:
Nov 15, 2000, 2:56:46 PM (25 years ago)
Author:
sandervl
Message:

(Ext)SelectClipRgn fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/objhandle.cpp

    r4533 r4596  
    1 /* $Id: objhandle.cpp,v 1.5 2000-10-26 17:20:29 sandervl Exp $ */
     1/* $Id: objhandle.cpp,v 1.6 2000-11-15 13:56:45 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    1919#include <vmutex.h>
    2020#include <objhandle.h>
     21#include <dcdata.h>
     22#include <winuser32.h>
     23#include "oslibgpi.h"
    2124#include "dibsect.h"
    2225#include "region.h"
     
    217220
    218221    if(ObjGetHandleType(hObj) == GDIOBJ_REGION) {
    219     //Return complexity here; not previously selected clip region
     222        //Return complexity here; not previously selected clip region
    220223        return (HGDIOBJ)SelectClipRgn(hdc, hObj);
    221224    }
     
    246249      }
    247250    }
     251#ifdef USING_OPEN32
     252    if(O32_GetObjectType(hObj) == OBJ_BITMAP)
     253    {
     254        //SvL: Open32 messes up the height of the hdc (for windows)
     255        pDCData  pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
     256        if(pHps && pHps->hwnd) {
     257              dprintf2(("change back origin"));
     258              selectClientArea(pHps);
     259              setPageXForm(pHps);
     260        }
     261    }
     262#endif
     263    dprintf2(("GDI32: SelectObject %x %x returned %x", hdc, hObj, rc));
     264
    248265    return(rc);
    249266}
Note: See TracChangeset for help on using the changeset viewer.