Ignore:
Timestamp:
Jun 2, 2002, 8:20:24 PM (23 years ago)
Author:
umoeller
Message:

Rewrote winlist widget to use daemon.

File:
1 edited

Legend:

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

    r164 r167  
    262262    else
    263263        *pb = (BYTE)ul;
     264}
     265
     266#define MEDIATE(a, b) (LONG)(a) + (((LONG)(b) - (LONG)(a)) / 2)
     267
     268/*
     269 *@@ gpihMediumRGB:
     270 *      returns the arithmetic medium color between
     271 *      lcol1 and lcol2.
     272 *
     273 *@@added V0.9.19 (2002-05-28) [umoeller]
     274 */
     275
     276LONG gpihMediumRGB(LONG lcol1, LONG lcol2)
     277{
     278    return MAKE_RGB(
     279                     MEDIATE(GET_RED(lcol1),
     280                             GET_RED(lcol2)),
     281                     MEDIATE(GET_GREEN(lcol1),
     282                             GET_GREEN(lcol2)),
     283                     MEDIATE(GET_BLUE(lcol1),
     284                             GET_BLUE(lcol2))
     285                   );
    264286}
    265287
     
    9821004    }
    9831005
    984     return (brc);
     1006    return brc;
    9851007}
    9861008
     
    16011623    }
    16021624
    1603     return (brc);
     1625    return brc;
    16041626}
    16051627
     
    24192441    }
    24202442
    2421     return (brc);
     2443    return brc;
    24222444}
    24232445
Note: See TracChangeset for help on using the changeset viewer.