- Timestamp:
- Jun 1, 2000, 9:00:05 PM (25 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/gdi32.cpp
r3641 r3648 1 /* $Id: gdi32.cpp,v 1.4 8 2000-06-01 11:27:05 sandervl Exp $ */1 /* $Id: gdi32.cpp,v 1.49 2000-06-01 19:00:05 sandervl Exp $ */ 2 2 3 3 /* … … 14 14 #include <stdarg.h> 15 15 #include <string.h> 16 #include <odinwrap.h> 16 17 #include "misc.h" 17 18 #include "callback.h" … … 24 25 #define DBG_LOCALLOG DBG_gdi32 25 26 #include "dbglocal.h" 27 28 ODINDEBUGCHANNEL(GDI32-GDI32) 26 29 27 30 //****************************************************************************** … … 1077 1080 //****************************************************************************** 1078 1081 //****************************************************************************** 1079 BOOL WIN32API LPtoDP( HDC arg1, PPOINT arg2, int arg3) 1080 { 1081 dprintf(("GDI32: LPtoDP")); 1082 return O32_LPtoDP(arg1, arg2, arg3); 1082 ODINFUNCTION3(BOOL, LPtoDP, HDC, hdc, PPOINT, lpPoints, int, nCount) 1083 { 1084 return O32_LPtoDP(hdc, lpPoints, nCount); 1083 1085 } 1084 1086 //****************************************************************************** … … 1256 1258 //****************************************************************************** 1257 1259 //****************************************************************************** 1258 int WIN32API SetMapMode( HDC arg1, int arg2) 1259 { 1260 dprintf(("GDI32: SetMapMode")); 1261 return O32_SetMapMode(arg1, arg2); 1262 } 1263 //****************************************************************************** 1264 //****************************************************************************** 1265 DWORD WIN32API SetMapperFlags( HDC arg1, DWORD arg2) 1266 { 1267 dprintf(("GDI32: SetMapperFlags")); 1268 return O32_SetMapperFlags(arg1, arg2); 1269 } 1270 //****************************************************************************** 1271 //****************************************************************************** 1272 BOOL WIN32API SetMiterLimit( HDC arg1, float arg2, float * arg3) 1273 { 1274 dprintf(("GDI32: SetMiterLimit")); 1275 return O32_SetMiterLimit(arg1, arg2, arg3); 1276 } 1277 //****************************************************************************** 1278 //****************************************************************************** 1279 int WIN32API SetPolyFillMode( HDC arg1, int arg2) 1280 { 1281 dprintf(("GDI32: SetPolyFillMode")); 1282 return O32_SetPolyFillMode(arg1, arg2); 1283 } 1284 //****************************************************************************** 1285 //****************************************************************************** 1286 UINT WIN32API SetTextAlign( HDC arg1, UINT arg2) 1287 { 1288 dprintf(("GDI32: SetTextAlign")); 1289 return O32_SetTextAlign(arg1, arg2); 1290 } 1291 //****************************************************************************** 1292 //****************************************************************************** 1293 int WIN32API SetTextCharacterExtra( HDC arg1, int arg2) 1294 { 1295 dprintf(("GDI32: SetTextCharacterExtra")); 1296 return O32_SetTextCharacterExtra(arg1, arg2); 1297 } 1298 //****************************************************************************** 1299 //****************************************************************************** 1300 BOOL WIN32API SetTextJustification( HDC arg1, int arg2, int arg3) 1301 { 1302 dprintf(("GDI32: SetTextJustification")); 1303 return O32_SetTextJustification(arg1, arg2, arg3); 1260 ODINFUNCTION2(int, SetMapMode, HDC, hdc, int, fnMapMode) 1261 { 1262 return O32_SetMapMode(hdc, fnMapMode); 1263 } 1264 //****************************************************************************** 1265 //****************************************************************************** 1266 ODINFUNCTION2(DWORD, SetMapperFlags, HDC, hdc, DWORD, dwFlag) 1267 { 1268 return O32_SetMapperFlags(hdc, dwFlag); 1269 } 1270 //****************************************************************************** 1271 //****************************************************************************** 1272 ODINFUNCTION3(BOOL, SetMiterLimit, HDC, hdc, float, eNewLimit, float* ,peOldLimit) 1273 { 1274 return O32_SetMiterLimit(hdc, eNewLimit, peOldLimit); 1275 } 1276 //****************************************************************************** 1277 //****************************************************************************** 1278 ODINFUNCTION2(int, SetPolyFillMode, HDC, hdc, int, iPolyFillMode) 1279 { 1280 return O32_SetPolyFillMode(hdc, iPolyFillMode); 1281 } 1282 //****************************************************************************** 1283 //****************************************************************************** 1284 ODINFUNCTION2(UINT, SetTextAlign, HDC, hdc, UINT, fMode) 1285 { 1286 return O32_SetTextAlign(hdc, fMode); 1287 } 1288 //****************************************************************************** 1289 //****************************************************************************** 1290 ODINFUNCTION2(int, SetTextCharacterExtra, HDC, hdc, int, nCharExtra) 1291 { 1292 return O32_SetTextCharacterExtra(hdc, nCharExtra); 1293 } 1294 //****************************************************************************** 1295 //****************************************************************************** 1296 ODINFUNCTION3(BOOL, SetTextJustification, HDC, hdc, int, nBreakExtra, int, nBreakCount) 1297 { 1298 return O32_SetTextJustification(hdc, nBreakExtra, nBreakCount); 1304 1299 } 1305 1300 //****************************************************************************** … … 1363 1358 //****************************************************************************** 1364 1359 //****************************************************************************** 1365 BOOL WIN32API UnrealizeObject( HGDIOBJ arg1)1366 { 1367 dprintf(("GDI32: UnrealizeObject "));1368 return O32_UnrealizeObject( arg1);1369 } 1370 //****************************************************************************** 1371 //****************************************************************************** 1372 BOOL WIN32API WidenPath( HDC arg1)1373 { 1374 dprintf(("GDI32: WidenPath "));1375 return O32_WidenPath( arg1);1360 BOOL WIN32API UnrealizeObject( HGDIOBJ hObject) 1361 { 1362 dprintf(("GDI32: UnrealizeObject %x", hObject)); 1363 return O32_UnrealizeObject(hObject); 1364 } 1365 //****************************************************************************** 1366 //****************************************************************************** 1367 BOOL WIN32API WidenPath( HDC hdc) 1368 { 1369 dprintf(("GDI32: WidenPath %x", hdc)); 1370 return O32_WidenPath(hdc); 1376 1371 } 1377 1372 //****************************************************************************** -
trunk/src/gdi32/text.cpp
r3481 r3648 1 /* $Id: text.cpp,v 1. 9 2000-05-02 20:49:58sandervl Exp $ */1 /* $Id: text.cpp,v 1.10 2000-06-01 19:00:05 sandervl Exp $ */ 2 2 3 3 /* … … 576 576 if (!pHps || (cbCount < 0) || ((lpszString == NULL) && (cbCount != 0))) 577 577 { 578 SetLastError(ERROR_INVALID_HANDLE); 579 return FALSE; 578 dprintf(("InternalTextOutA: invalid parameter")); 579 SetLastError(ERROR_INVALID_HANDLE); 580 return FALSE; 580 581 } 581 582 582 583 if (cbCount > 512) 583 584 { 584 SetLastError(ERROR_INVALID_PARAMETER); 585 return FALSE; 585 dprintf(("InternalTextOutA: invalid parameter cbCount")); 586 SetLastError(ERROR_INVALID_PARAMETER); 587 return FALSE; 586 588 } 587 589 if (fuOptions & ~((UINT)(ETO_CLIPPED | ETO_OPAQUE))) 588 590 { 589 //ETO_GLYPH_INDEX, ETO_RTLLEADING, ETO_NUMERICSLOCAL, ETO_NUMERICSLATIN, ETO_IGNORELANGUAGE, ETO_PDY are ignored 590 return TRUE; 591 dprintf(("InternalTextOutA: invalid fuOptions")); 592 //ETO_GLYPH_INDEX, ETO_RTLLEADING, ETO_NUMERICSLOCAL, ETO_NUMERICSLATIN, ETO_IGNORELANGUAGE, ETO_PDY are ignored 593 return TRUE; 591 594 } 592 595 … … 600 603 if (excludeBottomRightPoint(pHps,(PPOINTLOS2)&pmRect) == 0) 601 604 { 605 dprintf(("InternalTextOutA: excludeBottomRightPoint returned 0")); 602 606 return TRUE; 603 607 } … … 606 610 if (fuOptions & ETO_OPAQUE) flOptions |= CHSOS_OPAQUE; 607 611 } 608 } else 612 } 613 else 609 614 { 610 615 if (fuOptions) 611 616 { 612 SetLastError(ERROR_INVALID_HANDLE); 613 return FALSE; 617 dprintf(("InternalTextOutA: ERROR_INVALID_HANDLE")); 618 SetLastError(ERROR_INVALID_HANDLE); 619 return FALSE; 614 620 } 615 621 } … … 619 625 if (fuOptions & ETO_OPAQUE) 620 626 { 621 lpszString = " "; 622 cbCount = 1; 623 flOptions |= CHSOS_CLIP; 624 } else return TRUE; 627 lpszString = " "; 628 cbCount = 1; 629 flOptions |= CHSOS_CLIP; 630 } 631 else { 632 dprintf(("InternalTextOutA: cbCount == 0")); 633 return TRUE; 634 } 625 635 } 626 636 if (lpDx) … … 633 643 634 644 flOptions |= CHSOS_LEAVEPOS; 635 } else OSLibGpiQueryCurrentPosition(pHps,&ptl); 645 } 646 else OSLibGpiQueryCurrentPosition(pHps,&ptl); 636 647 637 648 UINT align = GetTextAlign(hdc); … … 663 674 OSLibGpiSetTextAlignment(pHps,pmHAlign,pmVAlign); 664 675 665 if (hits == GPIOS_ERROR) 666 return FALSE; 676 if(hits == GPIOS_ERROR) { 677 dprintf(("InternalTextOutA: OSLibGpiCharStringPosAt returned GPIOS_ERROR")); 678 return FALSE; 679 } 667 680 668 681 if (getAlignUpdateCP(pHps))
Note:
See TracChangeset
for help on using the changeset viewer.