Changeset 1671 for trunk/src/user32/user32.cpp
- Timestamp:
- Nov 9, 1999, 8:23:17 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r1629 r1671 1 /* $Id: user32.cpp,v 1.5 1 1999-11-08 13:44:14sandervl Exp $ */1 /* $Id: user32.cpp,v 1.52 1999-11-09 19:23:16 sandervl Exp $ */ 2 2 3 3 /* … … 99 99 BOOL WIN32API CopyRect( PRECT lprcDst, const RECT * lprcSrc) 100 100 { 101 // ddprintf(("USER32: CopyRect\n"));101 dprintf2(("USER32: CopyRect\n")); 102 102 if (!lprcDst || !lprcSrc) { 103 103 SetLastError(ERROR_INVALID_PARAMETER); … … 113 113 BOOL WIN32API EqualRect( const RECT *lprc1, const RECT *lprc2) 114 114 { 115 #ifdef DEBUG 116 WriteLog("USER32: EqualRect\n"); 117 #endif 115 dprintf2(("USER32: EqualRect\n")); 118 116 if (!lprc1 || !lprc2) 119 117 { … … 131 129 BOOL WIN32API InflateRect( PRECT lprc, int dx, int dy) 132 130 { 133 #ifdef DEBUG 134 WriteLog("USER32: InflateRect\n"); 135 #endif 131 dprintf(("USER32: InflateRect\n")); 136 132 if (!lprc) 137 133 { … … 151 147 BOOL WIN32API IntersectRect( PRECT lprcDst, const RECT * lprcSrc1, const RECT * lprcSrc2) 152 148 { 153 #ifdef DEBUG 154 //// WriteLog("USER32: IntersectRect\n"); 155 #endif 149 dprintf2(("USER32: IntersectRect\n")); 156 150 if (!lprcDst || !lprcSrc1 || !lprcSrc2) 157 151 { … … 191 185 BOOL WIN32API OffsetRect( PRECT lprc, int x, int y) 192 186 { 193 #ifdef DEBUG 194 //// WriteLog("USER32: OffsetRect\n"); 195 #endif 187 dprintf2(("USER32: OffsetRect\n")); 196 188 if (!lprc) 197 189 { … … 211 203 BOOL WIN32API PtInRect( const RECT *lprc, POINT pt) 212 204 { 213 #ifdef DEBUG1 214 WriteLog("USER32: PtInRect\n"); 215 #endif 205 dprintf2(("USER32: PtInRect\n")); 216 206 if (!lprc) 217 207 { … … 260 250 BOOL WIN32API SubtractRect( PRECT lprcDest, const RECT * lprcSrc1, const RECT * lprcSrc2) 261 251 { 262 #ifdef DEBUG 263 WriteLog("USER32: SubtractRect"); 264 #endif 252 dprintf2(("USER32: SubtractRect")); 265 253 RECT tmp; 266 254 … … 303 291 BOOL WIN32API UnionRect( PRECT lprcDst, const RECT *lprcSrc1, const RECT *lprcSrc2) 304 292 { 305 #ifdef DEBUG 306 WriteLog("USER32: UnionRect\n"); 307 #endif 293 dprintf2(("USER32: UnionRect\n")); 308 294 if (!lprcDst || !lprcSrc1 || !lprcSrc2) 309 295 { … … 341 327 BOOL WIN32API ClipCursor(const RECT * lpRect) 342 328 { 343 #ifdef DEBUG 344 WriteLog("USER32: ClipCursor\n"); 345 #endif 329 dprintf(("USER32: ClipCursor\n")); 346 330 return O32_ClipCursor(lpRect); 347 331 } … … 350 334 HCURSOR WIN32API CreateCursor( HINSTANCE hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, const VOID *pvANDPlane, const VOID *pvXORPlane) 351 335 { 352 #ifdef DEBUG 353 WriteLog("USER32: CreateCursor\n"); 354 #endif 336 dprintf(("USER32: CreateCursor\n")); 355 337 return O32_CreateCursor(hInst,xHotSpot,yHotSpot,nWidth,nHeight,pvANDPlane,pvXORPlane); 356 338 } … … 359 341 BOOL WIN32API DestroyCursor( HCURSOR hCursor) 360 342 { 361 #ifdef DEBUG 362 WriteLog("USER32: DestroyCursor\n"); 363 #endif 343 dprintf(("USER32: DestroyCursor\n")); 364 344 return O32_DestroyCursor(hCursor); 365 345 } … … 368 348 BOOL WIN32API GetClipCursor( LPRECT lpRect) 369 349 { 370 #ifdef DEBUG 371 WriteLog("USER32: GetClipCursor\n"); 372 #endif 350 dprintf(("USER32: GetClipCursor\n")); 373 351 return O32_GetClipCursor(lpRect); 374 352 } … … 377 355 HCURSOR WIN32API GetCursor(void) 378 356 { 379 #ifdef DEBUG 380 //// WriteLog("USER32: GetCursor\n"); 381 #endif 357 dprintf2(("USER32: GetCursor\n")); 382 358 return O32_GetCursor(); 383 359 } … … 388 364 BOOL rc; 389 365 POINT point; 390 #ifdef DEBUG 391 //// WriteLog("USER32: GetCursorPos\n");392 #endif 366 367 dprintf2(("USER32: GetCursorPos\n")); 368 393 369 if (!lpPoint) return FALSE; 394 370 if (OSLibWinQueryPointerPos(OSLIB_HWND_DESKTOP,&point)) //POINT == POINTL … … 422 398 { 423 399 return LoadCursorA(NULL,lpFileName); 424 } else 400 } 401 else 425 402 { 426 403 dprintf(("USER32:LoadCursorFromFileA (%s) not implemented.\n", … … 476 453 BOOL WIN32API SetCursorPos( int X, int Y) 477 454 { 478 #ifdef DEBUG 479 WriteLog("USER32: SetCursorPos\n"); 480 #endif 455 dprintf(("USER32: SetCursorPos %d %d", X,Y)); 481 456 return O32_SetCursorPos(X,Y); 482 457 } … … 512 487 int WIN32API ShowCursor( BOOL bShow) 513 488 { 514 #ifdef DEBUG 515 WriteLog("USER32: ShowCursor\n"); 516 #endif 489 dprintf2(("USER32: ShowCursor %d", bShow)); 517 490 return O32_ShowCursor(bShow); 518 491 } … … 547 520 UINT WIN32API GetDoubleClickTime(void) 548 521 { 549 #ifdef DEBUG 550 WriteLog("USER32: GetDoubleClickTime\n"); 551 #endif 522 dprintf(("USER32: GetDoubleClickTime\n")); 552 523 return O32_GetDoubleClickTime(); 553 524 } … … 845 816 break; 846 817 } 847 #ifdef DEBUG 848 WriteLog("USER32: GetSystemMetrics %d returned %d\n", nIndex, rc); 849 #endif 818 dprintf(("USER32: GetSystemMetrics %d returned %d\n", nIndex, rc)); 850 819 return(rc); 851 820 } … … 949 918 break; 950 919 } 951 #ifdef DEBUG 952 WriteLog("USER32: SystemParametersInfoA %d, returned %d\n", uiAction, rc); 953 #endif 920 dprintf(("USER32: SystemParametersInfoA %d, returned %d\n", uiAction, rc)); 954 921 return(rc); 955 922 } … … 1133 1100 WORD WIN32API GetAsyncKeyState(INT nVirtKey) 1134 1101 { 1135 #ifdef DEBUG 1136 //// WriteLog("USER32: GetAsyncKeyState Not implemented\n"); 1137 #endif 1102 dprintf2(("USER32: GetAsyncKeyState Not implemented\n")); 1138 1103 return 0; 1139 1104 } … … 1185 1150 int WIN32API GetKeyboardLayoutList(int nBuff, HKL *lpList) 1186 1151 { 1187 #ifdef DEBUG 1188 WriteLog("USER32: GetKeyboardLayoutList, not implemented\n"); 1189 #endif 1152 dprintf(("USER32: GetKeyboardLayoutList, not implemented\n")); 1190 1153 return(0); 1191 1154 } … … 1257 1220 { 1258 1221 //SvL: Hehe. 32 MB logfile for Opera after a minute. 1259 #ifdef DEBUG 1260 // WriteLog("USER32: GetKeyState %d\n", nVirtKey); 1261 #endif 1222 dprintf2(("USER32: GetKeyState %d\n", nVirtKey)); 1262 1223 return O32_GetKeyState(nVirtKey); 1263 1224 }
Note:
See TracChangeset
for help on using the changeset viewer.