Changeset 3648 for trunk/src/gdi32/text.cpp
- Timestamp:
- Jun 1, 2000, 9:00:05 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.