Changeset 3722 for trunk/src/user32/dc.cpp
- Timestamp:
- Jun 17, 2000, 11:45:02 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r3708 r3722 1 /* $Id: dc.cpp,v 1.6 1 2000-06-14 14:25:56sandervl Exp $ */1 /* $Id: dc.cpp,v 1.62 2000-06-17 09:45:00 sandervl Exp $ */ 2 2 3 3 /* … … 885 885 { 886 886 ULONG BytesNeeded; 887 PRGNDATA _WRgnData;887 PRGNDATA RgnData; 888 888 PRECT pr; 889 889 int i; … … 1053 1053 { 1054 1054 ULONG BytesNeeded; 1055 PRGNDATA _WRgnData;1055 PRGNDATA RgnData; 1056 1056 PRECTL pr; 1057 1057 int i; … … 1066 1066 goto error; 1067 1067 1068 BytesNeeded = O32_GetRegionData (hrgn, 0, NULL);1069 RgnData = (PRGNDATA _W)_alloca (BytesNeeded);1068 BytesNeeded = GetRegionData (hrgn, 0, NULL); 1069 RgnData = (PRGNDATA)_alloca (BytesNeeded); 1070 1070 if (RgnData == NULL) 1071 1071 goto error; 1072 O32_GetRegionData (hrgn, BytesNeeded, RgnData);1072 GetRegionData (hrgn, BytesNeeded, RgnData); 1073 1073 1074 1074 pr = (PRECTL)(RgnData->Buffer); … … 1107 1107 success = WinInvalidateRect (hwnd, NULL, IncludeChildren); 1108 1108 else 1109 if (hrgn) 1109 if (hrgn) { 1110 1110 success = WinInvalidateRegion (hwnd, hrgnTemp, IncludeChildren); 1111 } 1111 1112 else 1112 1113 success = WinInvalidateRect (hwnd, &rectl, IncludeChildren); … … 1124 1125 success = WinValidateRect (hwnd, NULL, IncludeChildren); 1125 1126 else 1126 if (hrgn) 1127 if (hrgn) { 1127 1128 success = WinValidateRegion (hwnd, hrgnTemp, IncludeChildren); 1129 } 1128 1130 else 1129 1131 success = WinValidateRect (hwnd, &rectl, IncludeChildren); … … 1237 1239 rc = GpiQueryRegionRects (hps, hrgnPM, NULL, &rgnRect, Rcls); 1238 1240 1239 rc = O32_SetRectRgn(hrgnWin, pRcl->xLeft,1240 1241 1242 1241 rc = SetRectRgn(hrgnWin, pRcl->xLeft, 1242 pRcl->xRight, 1243 height - pRcl->yTop, 1244 height - pRcl->yBottom); 1243 1245 1244 1246 if (rgnRect.crcReturned > 1) … … 1246 1248 int i; 1247 1249 HRGN temp; 1248 temp = O32_CreateRectRgn (0, 0, 1, 1);1250 temp = CreateRectRgn (0, 0, 1, 1); 1249 1251 1250 1252 for (i = 1, pRcl++; rc && (i < rgnRect.crcReturned); i++, pRcl++) 1251 1253 { 1252 rc = O32_SetRectRgn (temp, pRcl->xLeft,1253 1254 1255 1256 rc &= O32_CombineRgn (hrgnWin, hrgnWin, temp, RGN_OR_W);1254 rc = SetRectRgn (temp, pRcl->xLeft, 1255 pRcl->xRight, 1256 height - pRcl->yTop, 1257 height - pRcl->yBottom); 1258 rc &= CombineRgn (hrgnWin, hrgnWin, temp, RGN_OR_W); 1257 1259 } 1258 O32_DeleteObject (temp);1260 DeleteObject (temp); 1259 1261 } 1260 1262 delete[] Rcls; … … 1267 1269 else 1268 1270 { 1269 rc = O32_SetRectRgn (hrgnWin, 0, 0, 0, 0);1271 rc = SetRectRgn (hrgnWin, 0, 0, 0, 0); 1270 1272 } 1271 1273
Note:
See TracChangeset
for help on using the changeset viewer.