diff options
Diffstat (limited to 'gtk2_ardour/rgb_macros.h')
-rw-r--r-- | gtk2_ardour/rgb_macros.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/rgb_macros.h b/gtk2_ardour/rgb_macros.h index d5b5722687..8252349452 100644 --- a/gtk2_ardour/rgb_macros.h +++ b/gtk2_ardour/rgb_macros.h @@ -54,6 +54,10 @@ #define UINT_RGBA_G(x) ((((guint)(x))>>16)&0xff) #define UINT_RGBA_B(x) ((((guint)(x))>>8)&0xff) #define UINT_RGBA_A(x) (((guint)(x))&0xff) +#define UINT_RGBA_R_FLT(x) ((((guint)(x))>>24)/255.0) +#define UINT_RGBA_G_FLT(x) (((((guint)(x))>>16)&0xff)/255.0) +#define UINT_RGBA_B_FLT(x) (((((guint)(x))>>8)&0xff)/255.0) +#define UINT_RGBA_A_FLT(x) ((((guint)(x))&0xff)/255.0) #define UINT_RGBA_CHANGE_R(x, r) (((x)&(~(0xff<<24)))|(((r)&0xff)<<24)) #define UINT_RGBA_CHANGE_G(x, g) (((x)&(~(0xff<<16)))|(((g)&0xff)<<16)) #define UINT_RGBA_CHANGE_B(x, b) (((x)&(~(0xff<<8)))|(((b)&0xff)<<8)) |