Ignore:
Timestamp:
Jan 29, 2003, 7:41:39 PM (23 years ago)
Author:
umoeller
Message:

New build system, multimedia, other misc fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/gpih.c

    r242 r243  
    737737    {
    738738        ULONG cLines = strhCount(pcsz, '\n') + 1;
    739         cyString = cLines * (pfm->lMaxBaselineExt + pfm->lExternalLeading);
     739        cyString = cLines * (pfm->lMaxBaselineExt + pfm->lMaxDescender + pfm->lExternalLeading);
    740740
    741741        if (fl & DT_VCENTER)
    742             ptlRun.y += (cyRect - cyString) / 2;
     742            ptlRun.y = (cyRect - cyString) / 2;
    743743        else
    744             ptlRun.y += cyRect - cyString;
     744            ptlRun.y = cyString;
    745745    }
    746746
     
    789789        ptlRun.y -= pfm->lExternalLeading;
    790790
     791        if (!*pNext)
     792            break;
     793
    791794        if (*pNext == '\r')
    792795            pNext++;
    793         pThis = pNext;
     796        pThis = ++pNext;
    794797    }
    795798}
     
    25532556LONG gpihStretchBitmap(HPS hpsTarget,       // in: memory PS to copy bitmap to
    25542557                       HBITMAP hbmSource,   // in: bitmap to be copied into hpsTarget (must be free)
    2555                        PRECTL prclSource,   // in: source rectangle -- if NULL, use size of bitmap
    2556                        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)
    25572560                       BOOL fProportional)  // in: preserve proportions when stretching?
    25582561{
Note: See TracChangeset for help on using the changeset viewer.