Changeset 243 for trunk/src/helpers/gpih.c
- Timestamp:
- Jan 29, 2003, 7:41:39 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/gpih.c
r242 r243 737 737 { 738 738 ULONG cLines = strhCount(pcsz, '\n') + 1; 739 cyString = cLines * (pfm->lMaxBaselineExt + pfm->l ExternalLeading);739 cyString = cLines * (pfm->lMaxBaselineExt + pfm->lMaxDescender + pfm->lExternalLeading); 740 740 741 741 if (fl & DT_VCENTER) 742 ptlRun.y += (cyRect - cyString) / 2;742 ptlRun.y = (cyRect - cyString) / 2; 743 743 else 744 ptlRun.y += cyRect -cyString;744 ptlRun.y = cyString; 745 745 } 746 746 … … 789 789 ptlRun.y -= pfm->lExternalLeading; 790 790 791 if (!*pNext) 792 break; 793 791 794 if (*pNext == '\r') 792 795 pNext++; 793 pThis = pNext;796 pThis = ++pNext; 794 797 } 795 798 } … … 2553 2556 LONG gpihStretchBitmap(HPS hpsTarget, // in: memory PS to copy bitmap to 2554 2557 HBITMAP hbmSource, // in: bitmap to be copied into hpsTarget (must be free) 2555 PRECTL prclSource, // in: source rectangle -- if NULL, use size of bitmap2556 PRECTL prclTarget, // in: target rectangle (req .)2558 PRECTL prclSource, // in: source rectangle -- if NULL, use size of source bmp 2559 PRECTL prclTarget, // in: target rectangle (required) 2557 2560 BOOL fProportional) // in: preserve proportions when stretching? 2558 2561 {
Note:
See TracChangeset
for help on using the changeset viewer.