Ignore:
Timestamp:
Aug 3, 2001, 8:52:44 PM (24 years ago)
Author:
umoeller
Message:

Misc changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/gpih.h

    r91 r93  
    7878    #define RGBCOL_DARKYELLOW       0x00808000
    7979    #define RGBCOL_DARKGRAY         0x00808080
     80
     81    /*
     82     *@@ GET_BLUE:
     83     *      gets the BLUE (first) byte from a
     84     *      LONG RGB value.
     85     *
     86     *@@added V0.9.14 (2001-08-03) [umoeller]
     87     */
     88
     89    #define GET_BLUE(lcol)  *( ((PBYTE)(&(lcol))) )
     90
     91    /*
     92     *@@ GET_GREEN:
     93     *      gets the GREEN (second) byte from a
     94     *      LONG RGB value.
     95     *
     96     *@@added V0.9.14 (2001-08-03) [umoeller]
     97     */
     98
     99    #define GET_GREEN(lcol) *( ((PBYTE)(&(lcol))) + 1 )
     100
     101    /*
     102     *@@ GET_RED:
     103     *      gets the RED (third) byte from a
     104     *      LONG RGB value.
     105     *
     106     *@@added V0.9.14 (2001-08-03) [umoeller]
     107     */
     108
     109    #define GET_RED(lcol)   *( ((PBYTE)(&(lcol))) + 2 )
     110
     111    /*
     112     *@@ MAKE_RGB:
     113     *      composes a LONG color value from
     114     *      three BYTE values for red, green,
     115     *      and blue.
     116     *
     117     *@@added V0.9.14 (2001-08-03) [umoeller]
     118     */
     119
     120    #define MAKE_RGB(r, g, b) (LONG)((BYTE)(b)) + (((LONG)((BYTE)(g))) << 8) + (((LONG)((BYTE)(r))) << 16)
    80121
    81122    VOID XWPENTRY gpihManipulateRGB(PLONG plColor, double dFactor);
Note: See TracChangeset for help on using the changeset viewer.