Ignore:
Timestamp:
Jan 1, 2001, 4:30:29 PM (25 years ago)
Author:
umoeller
Message:

Tons of updates.

File:
1 edited

Legend:

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

    r14 r18  
    1515 *      example, WinQueryWindowRect returns an inclusive-exclusive
    1616 *      rectangle (so that the xRight value is the same as the window
    17  *      width). However, GpiBox expects an inclusive-inclusive rectangle.
     17 *      width -- tested V0.9.7 (2000-12-20) [umoeller]).
     18 *
     19 *      WinFillRect expects an inclusive-exclusive rectangle, so it
     20 *      will work with a rectangle from WinQueryWindowRect directly.
     21 *
     22 *      By contrast, the GpiBox expects an inclusive-inclusive rectangle.
    1823 *
    1924 *      Function prefixes (new with V0.81):
     
    194199 *      (bitmap) PS's also.
    195200 *
    196  *      The specified rectangle is exclusive, meaning that
    197  *      the top right point lies _outside_ the rectangle
    198  *      which is actually drawn. This is the same as with
    199  *      WinFillRect. ### I don't think so any more... GpiBox
    200  *      uses inclusive-inclusive rectangles...
     201 *      The specified rectangle is inclusive, that is, the top
     202 *      right corner specifies the top right pixel to be drawn.
     203 *      This is different from WinFillRect.
    201204 *
    202205 *      Changes to the HPS:
     
    272275 *      The specified rectangle is inclusive, that is, the top
    273276 *      right corner specifies the top right pixel to be drawn.
     277 *      This is different from WinFillRect.
    274278 *
    275279 *      If usWidth > 1, the additional pixels will be drawn towards
     
    288292
    289293VOID gpihDrawThickFrame(HPS hps,              // in: presentation space for output
    290                         PRECTL prcl,          // in: rectangle to draw (exclusive)
     294                        PRECTL prcl,          // in: rectangle to draw (inclusive)
    291295                        ULONG ulWidth)       // in: line width (>= 1)
    292296{
     
    318322 *      The specified rectangle is inclusive, that is, the top
    319323 *      right corner specifies the top right pixel to be drawn.
     324 *      This is different from WinFillRect.
    320325 *
    321326 *      If usWidth > 1, the additional pixels will be drawn towards
     
    324329 *
    325330 *@@changed V0.9.0 [umoeller]: changed function prototype to have colors specified
     331 *@@changed V0.9.7 (2000-12-20) [umoeller]: now really using inclusive rectangle...
    326332 */
    327333
    328334VOID gpihDraw3DFrame(HPS hps,
    329                      PRECTL prcl,       // in: rectangle
     335                     PRECTL prcl,       // in: rectangle (inclusive)
    330336                     USHORT usWidth,    // in: line width (>= 1)
    331337                     LONG lColorLeft,   // in: color to use for left and top; e.g. SYSCLR_BUTTONLIGHT
     
    342348        ptl1.y = rcl2.yBottom;
    343349        GpiMove(hps, &ptl1);
    344         ptl1.y = rcl2.yTop-1;
     350        ptl1.y = rcl2.yTop;     // V0.9.7 (2000-12-20) [umoeller]
    345351        GpiLine(hps, &ptl1);
    346         ptl1.x = rcl2.xRight-1;
     352        ptl1.x = rcl2.xRight;   // V0.9.7 (2000-12-20) [umoeller]
    347353        GpiLine(hps, &ptl1);
    348354        GpiSetColor(hps, lColorRight);
     
    10631069 *      screen yourself and need the height of a text
    10641070 *      line to advance to the next.
    1065  */
    1066 
    1067 LONG gpihQueryLineSpacing(HPS hps,
    1068                           PSZ pszText)      // in:  text to output
     1071 *
     1072 *@@changed V0.9.7 (2000-12-20) [umoeller]: removed psz param
     1073 */
     1074
     1075LONG gpihQueryLineSpacing(HPS hps)
    10691076{
    10701077    FONTMETRICS fm;
    1071     POINTL aptlText[TXTBOX_COUNT];
    1072     GpiQueryTextBox(hps, strlen(pszText), pszText,
    1073                     TXTBOX_COUNT, (PPOINTL)&aptlText);
    10741078
    10751079    if (GpiQueryFontMetrics(hps, sizeof(FONTMETRICS), &fm))
    10761080        return ( (  fm.lMaxBaselineExt     // max vertical font space
    10771081                   +fm.lExternalLeading)    // space advised by font designer
    1078                  // * 12 / 10
    10791082               );
    10801083    else
Note: See TracChangeset for help on using the changeset viewer.