Changeset 4963 for trunk/src/gdi32/gdi32.cpp
- Timestamp:
- Jan 18, 2001, 7:13:18 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/gdi32.cpp
r4848 r4963 1 /* $Id: gdi32.cpp,v 1.6 4 2000-12-29 18:40:44sandervl Exp $ */1 /* $Id: gdi32.cpp,v 1.65 2001-01-18 18:13:17 sandervl Exp $ */ 2 2 3 3 /* … … 193 193 //****************************************************************************** 194 194 //****************************************************************************** 195 BOOL WIN32API StrokeAndFillPath( HDC arg1)196 { 197 dprintf(("GDI32: StrokeAndFillPath \n"));198 return O32_StrokeAndFillPath( arg1);199 } 200 //****************************************************************************** 201 //****************************************************************************** 202 BOOL WIN32API StrokePath( HDC arg1)203 { 204 dprintf(("GDI32: StrokePath \n"));205 return O32_StrokePath( arg1);195 BOOL WIN32API StrokeAndFillPath(HDC hdc) 196 { 197 dprintf(("GDI32: StrokeAndFillPath %x", hdc)); 198 return O32_StrokeAndFillPath(hdc); 199 } 200 //****************************************************************************** 201 //****************************************************************************** 202 BOOL WIN32API StrokePath(HDC hdc) 203 { 204 dprintf(("GDI32: StrokePath %x", hdc)); 205 return O32_StrokePath(hdc); 206 206 } 207 207 //****************************************************************************** … … 242 242 //****************************************************************************** 243 243 //****************************************************************************** 244 BOOL WIN32API GetDCOrgEx(HDC arg1, PPOINT arg2) 245 { 246 dprintf(("GDI32: GetDCOrgEx\n")); 247 return O32_GetDCOrgEx(arg1, arg2); 248 } 249 //****************************************************************************** 250 //****************************************************************************** 251 int WIN32API AbortDoc( HDC arg1) 252 { 253 dprintf(("GDI32: AbortDoc")); 254 return O32_AbortDoc(arg1); 255 } 256 //****************************************************************************** 257 //****************************************************************************** 258 BOOL WIN32API AbortPath( HDC arg1) 259 { 260 dprintf(("GDI32: AbortPath")); 261 return O32_AbortPath(arg1); 244 BOOL WIN32API GetDCOrgEx(HDC hdc, PPOINT lpPoint) 245 { 246 if(lpPoint == NULL) { 247 dprintf(("WARNING: GDI32: GetDCOrgEx %x NULL", hdc)); 248 return FALSE; 249 } 250 dprintf(("GDI32: GetDCOrgEx %x (%d,%d)", hdc, lpPoint)); 251 return O32_GetDCOrgEx(hdc, lpPoint); 252 } 253 //****************************************************************************** 254 //****************************************************************************** 255 int WIN32API AbortDoc(HDC hdc) 256 { 257 dprintf(("GDI32: AbortDoc %x", hdc)); 258 return O32_AbortDoc(hdc); 259 } 260 //****************************************************************************** 261 //****************************************************************************** 262 BOOL WIN32API AbortPath(HDC hdc) 263 { 264 dprintf(("GDI32: AbortPath %x", hdc)); 265 return O32_AbortPath(hdc); 262 266 } 263 267 //****************************************************************************** … … 284 288 //****************************************************************************** 285 289 //****************************************************************************** 286 BOOL WIN32API BeginPath( HDC arg1)287 { 288 dprintf(("GDI32: BeginPath "));289 return O32_BeginPath( arg1);290 BOOL WIN32API BeginPath(HDC hdc) 291 { 292 dprintf(("GDI32: BeginPath $x", hdc)); 293 return O32_BeginPath(hdc); 290 294 } 291 295 //****************************************************************************** … … 298 302 //****************************************************************************** 299 303 //****************************************************************************** 300 BOOL WIN32API CloseFigure( HDC arg1) 301 { 302 dprintf(("GDI32: CloseFigure")); 303 return O32_CloseFigure(arg1); 304 } 305 //****************************************************************************** 306 //****************************************************************************** 307 HBRUSH WIN32API CreateBrushIndirect( const LOGBRUSH * arg1) 308 { 309 dprintf(("GDI32: CreateBrushIndirect")); 310 return O32_CreateBrushIndirect((LPLOGBRUSH)arg1); 304 BOOL WIN32API CloseFigure(HDC hdc) 305 { 306 dprintf(("GDI32: CloseFigure %x", hdc)); 307 return O32_CloseFigure(hdc); 308 } 309 //****************************************************************************** 310 //****************************************************************************** 311 HBRUSH WIN32API CreateBrushIndirect( const LOGBRUSH *pLogBrush) 312 { 313 HBRUSH hBrush; 314 315 hBrush = O32_CreateBrushIndirect((LPLOGBRUSH)pLogBrush); 316 dprintf(("GDI32: CreateBrushIndirect %x %x %x returned %x", pLogBrush->lbStyle, pLogBrush->lbColor, pLogBrush->lbHatch, hBrush)); 317 return hBrush; 311 318 } 312 319 //****************************************************************************** … … 505 512 //****************************************************************************** 506 513 //****************************************************************************** 507 BOOL WIN32API Ellipse( HDC arg1, int arg2, int arg3, int arg4, int arg5) 508 { 509 dprintf(("GDI32: Ellipse")); 510 return O32_Ellipse(arg1, arg2, arg3, arg4, arg5); 511 } 512 //****************************************************************************** 513 //****************************************************************************** 514 int WIN32API EndDoc( HDC arg1) 515 { 516 dprintf(("GDI32: EndDoc")); 517 return O32_EndDoc(arg1); 518 } 519 //****************************************************************************** 520 //****************************************************************************** 521 int WIN32API EndPage( HDC arg1) 522 { 523 dprintf(("GDI32: EndPage")); 524 return O32_EndPage(arg1); 525 } 526 //****************************************************************************** 527 //****************************************************************************** 528 BOOL WIN32API EndPath( HDC arg1) 529 { 530 dprintf(("GDI32: EndPath")); 531 return O32_EndPath(arg1); 514 BOOL WIN32API Ellipse(HDC hdc, int nLeftRect, int nTopRect, int nRightRect, 515 int nBottomRect) 516 { 517 dprintf(("GDI32: Ellipse %x (%d,%d)(%d,%d)", nLeftRect, nTopRect, nRightRect, nBottomRect)); 518 return O32_Ellipse(hdc, nLeftRect, nTopRect, nRightRect, nBottomRect); 519 } 520 //****************************************************************************** 521 //****************************************************************************** 522 int WIN32API EndDoc( HDC hdc) 523 { 524 dprintf(("GDI32: EndDoc %x", hdc)); 525 return O32_EndDoc(hdc); 526 } 527 //****************************************************************************** 528 //****************************************************************************** 529 int WIN32API EndPage( HDC hdc) 530 { 531 dprintf(("GDI32: EndPage %x", hdc)); 532 return O32_EndPage(hdc); 533 } 534 //****************************************************************************** 535 //****************************************************************************** 536 BOOL WIN32API EndPath( HDC hdc) 537 { 538 dprintf(("GDI32: EndPath %x", hdc)); 539 return O32_EndPath(hdc); 532 540 } 533 541 //****************************************************************************** … … 702 710 //****************************************************************************** 703 711 //****************************************************************************** 704 COLORREF WIN32API GetBkColor( HDC arg1) 705 { 706 dprintf(("GDI32: GetBkColor")); 707 return O32_GetBkColor(arg1); 708 } 709 //****************************************************************************** 710 //****************************************************************************** 711 int WIN32API GetBkMode( HDC arg1) 712 { 713 dprintf(("GDI32: GetBkMode")); 714 return O32_GetBkMode(arg1); 712 COLORREF WIN32API GetBkColor(HDC hdc) 713 { 714 COLORREF color; 715 716 color = O32_GetBkColor(hdc); 717 dprintf(("GDI32: GetBkColor %x returned %x", hdc, color)); 718 return color; 719 } 720 //****************************************************************************** 721 //****************************************************************************** 722 int WIN32API GetBkMode(HDC hdc) 723 { 724 int bkmode; 725 726 bkmode = O32_GetBkMode(hdc); 727 dprintf(("GDI32: GetBkMode %x returned %d", hdc, bkmode)); 728 return bkmode; 715 729 } 716 730 //****************************************************************************** … … 781 795 //****************************************************************************** 782 796 //****************************************************************************** 783 BOOL WIN32API GetCurrentPositionEx( HDC arg1, PPOINT arg2) 784 { 785 dprintf(("GDI32: GetCurrentPositionEx")); 786 return O32_GetCurrentPositionEx(arg1, arg2); 797 BOOL WIN32API GetCurrentPositionEx( HDC hdc, PPOINT lpPoint) 798 { 799 BOOL rc; 800 801 dprintf(("GDI32: GetCurrentPositionEx %x", hdc)); 802 rc = O32_GetCurrentPositionEx(hdc, lpPoint); 803 dprintf(("GDI32: GetCurrentPositionEx returned %d (%d,%d)", rc, lpPoint->x, lpPoint->y)); 804 return rc; 787 805 } 788 806 //****************************************************************************** … … 970 988 int nYRadial2) 971 989 { 972 dprintf(("GDI32: Pie")); 990 dprintf(("GDI32: Pie %x (%d,%d)(%d,%d) (%d,%d) (%d,%d)", hdc, nLeftRect, nTopRect, nRightRect, 991 nBottomRect, nXRadial1, nYRadial1, nXRadial2, nYRadial2)); 992 973 993 //CB: bug in O32_Pie 974 994 if (nXRadial1 == nXRadial2 && nYRadial1 == nYRadial2) … … 1009 1029 BOOL WIN32API PolyPolyline( HDC hdc, const POINT * lppt, const DWORD * lpdwPolyPoints, DWORD cCount) 1010 1030 { 1011 dprintf(("GDI32: PolyPolyline "));1031 dprintf(("GDI32: PolyPolyline %x %x %x %d", hdc, lppt, lpdwPolyPoints, cCount)); 1012 1032 1013 1033 return O32_PolyPolyline(hdc,lppt,lpdwPolyPoints,cCount); … … 1022 1042 //****************************************************************************** 1023 1043 //****************************************************************************** 1024 BOOL WIN32API PtVisible( HDC arg1, int arg2, int arg3) 1025 { 1026 dprintf(("GDI32: PtVisible")); 1027 return O32_PtVisible(arg1, arg2, arg3); 1028 } 1029 //****************************************************************************** 1030 //****************************************************************************** 1031 BOOL WIN32API RectVisible( HDC arg1, const RECT * arg2) 1032 { 1033 dprintf(("GDI32: RectVisible\n")); 1034 return O32_RectVisible(arg1, arg2); 1044 BOOL WIN32API PtVisible( HDC hdc, int x, int y) 1045 { 1046 dprintf(("GDI32: PtVisible %x (%d,%d)", hdc, x, y)); 1047 return O32_PtVisible(hdc, x, y); 1048 } 1049 //****************************************************************************** 1050 //****************************************************************************** 1051 BOOL WIN32API RectVisible( HDC hdc, const RECT *lpRect) 1052 { 1053 if(lpRect == NULL) { 1054 dprintf(("WARNING: GDI32: RectVisible %x lpRect == NULL!")); 1055 return FALSE; 1056 } 1057 dprintf(("GDI32: RectVisible %x (%d,%d)(%d,%d)", hdc, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom)); 1058 return O32_RectVisible(hdc, lpRect); 1035 1059 } 1036 1060 //****************************************************************************** … … 1051 1075 //****************************************************************************** 1052 1076 //****************************************************************************** 1053 BOOL WIN32API RestoreDC( HDC arg1, int arg2) 1054 { 1055 dprintf(("GDI32: RestoreDC\n")); 1056 return O32_RestoreDC(arg1, arg2); 1077 BOOL WIN32API RestoreDC(HDC hdc, int id) 1078 { 1079 BOOL ret; 1080 1081 dprintf(("GDI32: RestoreDC %x %d", hdc, id)); 1082 1083 ret = O32_RestoreDC(hdc, id); 1084 if(ret == FALSE) { 1085 dprintf(("ERROR: GDI32: RestoreDC %x %d FAILED", hdc, id)); 1086 } 1087 return ret; 1057 1088 } 1058 1089 //****************************************************************************** … … 1065 1096 //****************************************************************************** 1066 1097 //****************************************************************************** 1067 int WIN32API SaveDC( HDC arg1) 1068 { 1069 dprintf(("GDI32: SaveDC")); 1070 return O32_SaveDC(arg1); 1098 int WIN32API SaveDC( HDC hdc) 1099 { 1100 int id; 1101 1102 dprintf(("GDI32: SaveDC %x", hdc)); 1103 id = O32_SaveDC(hdc); 1104 if(id == 0) { 1105 dprintf(("ERROR: GDI32: SaveDC %x FAILED", hdc)); 1106 } 1107 else dprintf(("GDI32: SaveDC %x returned %d", hdc, id)); 1108 return id; 1071 1109 } 1072 1110 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.