Changeset 6941 for trunk/src/user32/dc.cpp
- Timestamp:
- Oct 3, 2001, 8:37:53 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r6412 r6941 1 /* $Id: dc.cpp,v 1.11 1 2001-07-30 12:02:15sandervl Exp $ */1 /* $Id: dc.cpp,v 1.112 2001-10-03 18:37:51 sandervl Exp $ */ 2 2 3 3 /* … … 969 969 int clipstyle = 0; 970 970 int clipwnd = HWND_TOP; 971 if(flags & (DCX_USESTYLE_W)) { 971 if(flags & (DCX_USESTYLE_W)) 972 { 972 973 int style = wnd->getStyle(); 973 974 if(style & WS_CLIPCHILDREN_W) { … … 990 991 clipstyle |= PSF_PARENTCLIP; 991 992 } 992 if(clipstyle) { 993 //Always call WinGetClipPS; WinGetPS takes window & class style 994 //into account 995 // if(clipstyle || !(flags & DCX_DEFAULTCLIP_W)) { 993 996 dprintf2(("WinGetClipPS style %x", clipstyle)); 994 997 hps = WinGetClipPS(hWindow, clipwnd, clipstyle); 995 }996 else hps = WinGetPS (hWindow);998 // } 999 // else hps = WinGetPS (hWindow); 997 1000 998 1001 // default cp is OS/2 one: set to windows default (ODIN.INI) … … 1111 1114 return GetDCEx( GetDesktopWindow(), 0, DCX_CACHE_W | DCX_WINDOW_W ); 1112 1115 1113 return GetDCEx (hwnd, NULL, 0);1116 return GetDCEx (hwnd, NULL, DCX_USESTYLE_W); 1114 1117 } 1115 1118 //****************************************************************************** … … 1118 1121 { 1119 1122 if (!hwnd) hwnd = GetDesktopWindow(); 1120 return GetDCEx (hwnd, NULL, DCX_WINDOW_W );1123 return GetDCEx (hwnd, NULL, DCX_WINDOW_W | DCX_USESTYLE_W); 1121 1124 } 1122 1125 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.