Ignore:
Timestamp:
Oct 3, 2001, 8:37:53 PM (24 years ago)
Author:
sandervl
Message:

window tracking rewrite + getdcex change (clipping)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/dc.cpp

    r6412 r6941  
    1 /* $Id: dc.cpp,v 1.111 2001-07-30 12:02:15 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.112 2001-10-03 18:37:51 sandervl Exp $ */
    22
    33/*
     
    969969            int clipstyle = 0;
    970970            int clipwnd   = HWND_TOP;
    971             if(flags & (DCX_USESTYLE_W)) {
     971            if(flags & (DCX_USESTYLE_W))
     972            {
    972973                int style = wnd->getStyle();
    973974                if(style & WS_CLIPCHILDREN_W) {
     
    990991                clipstyle |= PSF_PARENTCLIP;
    991992            }
    992             if(clipstyle) {
     993            //Always call WinGetClipPS; WinGetPS takes window & class style
     994            //into account
     995//            if(clipstyle || !(flags & DCX_DEFAULTCLIP_W)) {
    993996                 dprintf2(("WinGetClipPS style %x", clipstyle));
    994997                 hps = WinGetClipPS(hWindow, clipwnd, clipstyle);
    995             }
    996             else hps = WinGetPS (hWindow);
     998//            }
     999//            else hps = WinGetPS (hWindow);
    9971000
    9981001            // default cp is OS/2 one: set to windows default (ODIN.INI)
     
    11111114        return GetDCEx( GetDesktopWindow(), 0, DCX_CACHE_W | DCX_WINDOW_W );
    11121115
    1113     return GetDCEx (hwnd, NULL, 0);
     1116    return GetDCEx (hwnd, NULL, DCX_USESTYLE_W);
    11141117}
    11151118//******************************************************************************
     
    11181121{
    11191122    if (!hwnd) hwnd = GetDesktopWindow();
    1120     return GetDCEx (hwnd, NULL, DCX_WINDOW_W);
     1123    return GetDCEx (hwnd, NULL, DCX_WINDOW_W | DCX_USESTYLE_W);
    11211124}
    11221125//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.