Ignore:
Timestamp:
Aug 5, 2002, 8:57:15 PM (23 years ago)
Author:
umoeller
Message:

Misc fixes.

File:
1 edited

Legend:

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

    r184 r195  
    136136 *@@changed V0.9.16 (2001-10-24) [umoeller]: fixed wrong hatch color and paint offset
    137137 *@@changed V0.9.16 (2001-10-28) [umoeller]: added bitmap support, fixed bad clip rectangle
     138 *@@changed V0.9.20 (2002-08-04) [umoeller]: fixed button offset, depressed color
    138139 */
    139140
     
    147148            ulOfs = 0;
    148149    LONG    lLeft,
    149             lRight;
     150            lRight,
     151            lColorMiddle = pxbd->lMiddle;
    150152    RECTL   rclWin;
     153
    151154    memcpy(&rclWin, &pxbd->rcl, sizeof(RECTL));
    152155
     
    165168        if (ulBorder == 0)
    166169            ulBorder = 1;
     170
     171        // make the depressed color darker
     172        // V0.9.20 (2002-07-31) [umoeller]
     173        gpihManipulateRGB(&lColorMiddle,
     174                          .95);
    167175    }
    168176    else
     
    196204        WinFillRect(hps,
    197205                    &rclWin,        // exclusive
    198                     pxbd->lMiddle);
     206                    lColorMiddle);
    199207
    200208    // get icon
     
    254262            WinDrawPointer(hps,
    255263                           // center this in remaining rectl
    256                            ptl.x + ulOfs,
    257                            ptl.y - ulOfs,
     264                           ptl.x, // + ulOfs,
     265                           ptl.y, // - ulOfs,
    258266                           pxbd->hptr,
    259267                           DP_MINI);
Note: See TracChangeset for help on using the changeset viewer.