Ignore:
Timestamp:
Jan 17, 2001, 6:34:55 PM (25 years ago)
Author:
umoeller
Message:

Misc. changes for V0.9.7.

File:
1 edited

Legend:

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

    r23 r25  
    225225 *      This is different from WinFillRect.
    226226 *
     227 *      If (lColor != -1), the HPS's current foreground color
     228 *      is changed to that color.
     229 *
    227230 *      Changes to the HPS:
    228  *      --  the current (foreground) color is changed to
    229  *          lBackColor;
    230  *      --  the current area color is changed to lForeColor;
     231 *
    231232 *      --  the current position is moved to the lower left
    232233 *          corner of *prcl.
     
    234235 *@@changed V0.9.0 [umoeller]: renamed from gpihFillRect
    235236 *@@changed V0.9.0 [umoeller]: modified function prototype to support lControl
     237 *@@changed V0.9.7 (2001-01-17) [umoeller]: removed lColor
    236238 */
    237239
    238240VOID gpihBox(HPS hps,              // in: presentation space for output
    239241             LONG lControl,        // in: one of DRO_OUTLINE, DRO_FILL, DRO_OUTLINEFILL
    240              PRECTL prcl,          // in: rectangle to draw (exclusive)
    241              LONG lColor)          // in: color for outline and/or fill
     242             PRECTL prcl)          // in: rectangle to draw (exclusive)
    242243{
    243244    POINTL      ptl;
    244245
    245     GpiSetColor(hps, lColor);
    246246    ptl.x = prcl->xLeft;
    247247    ptl.y = prcl->yBottom;
     
    263263 *
    264264 *      No PS data is changed.
     265 *
     266 *@@changed V0.9.7 (2001-01-17) [umoeller]: removed lColor
    265267 */
    266268
     
    268270                LONG x,             // in: x-center of rectangle
    269271                LONG y,             // in: y-center of rectangle
    270                 ULONG ulWidth,      // in: rectangle width and height
    271                 LONG lColor)        // in: color
     272                ULONG ulWidth)      // in: rectangle width and height
    272273{
    273274    POINTL  ptlSave;
    274     LONG    lColorSave;
    275275    RECTL   rclTemp;
    276276    ULONG   ulWidth2 = ulWidth / 2;
     
    280280    rclTemp.yTop    = y + ulWidth2;
    281281
    282     lColorSave = GpiQueryColor(hps);
    283282    GpiQueryCurrentPosition(hps, &ptlSave);
    284283    gpihBox(hps,
    285284            DRO_FILL,
    286             &rclTemp,
    287             lColor);
     285            &rclTemp);
    288286    GpiMove(hps, &ptlSave);
    289     GpiSetColor(hps, lColorSave);
    290287}
    291288
     
    746743 *          semaphore is held by the wrapper. Then use only
    747744 *          the wrapper in your code.
     745 *
     746 *      <B>Font metrics:</B>
     747 *
     748 *      The important values in the returned FONTMETRICS are
     749 *      like this (according to PMREF):
     750 *
     751 +   ÉÍ ________________________________________________
     752 +   º
     753 +   º lExternalLeading, according to font designer.
     754 +   º  ________________________________________________  Í»
     755 +   ÈÍ                                                    º
     756 +                                  #       #              º
     757 +                                  ##     ##              º lMaxAscender (of entire;
     758 +   ÉÍ _______________             # #   # #              º font); this can be > capital
     759 +   º                 ####         #  # #  #              º letters because miniscules
     760 +   º                #    #        #   #   #              º can exceed that.
     761 +   º  lXHeight      #    #        #       #              º
     762 +   º                #    #        #       #              º
     763 +   º                #    #        #       #              º
     764 +   º  _______________#####________#_______#___ baseline Í»
     765 +   ÈÍ                    #                               º
     766 +                         #                               º lMaxDescender
     767 +      ______________ ####______________________________ ÍŒ
     768 +
     769 *
     770 *      In turn, lMaxBaselineExt is lMaxAscender + lMaxDescender.
     771 *
     772 *      Soooo... to find out about the optimal line spacing, GPIREF
     773 *      recommends to use lMaxBaselineExt + lExternalLeading.
    748774 *
    749775 *@@added V0.9.0 [umoeller]
Note: See TracChangeset for help on using the changeset viewer.