Changeset 167 for trunk/src/helpers/gpih.c
- Timestamp:
- Jun 2, 2002, 8:20:24 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/gpih.c
r164 r167 262 262 else 263 263 *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 276 LONG 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 ); 264 286 } 265 287 … … 982 1004 } 983 1005 984 return (brc);1006 return brc; 985 1007 } 986 1008 … … 1601 1623 } 1602 1624 1603 return (brc);1625 return brc; 1604 1626 } 1605 1627 … … 2419 2441 } 2420 2442 2421 return (brc);2443 return brc; 2422 2444 } 2423 2445
Note:
See TracChangeset
for help on using the changeset viewer.