diff options
Diffstat (limited to 'epan/color_filters.h')
-rw-r--r-- | epan/color_filters.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/color_filters.h b/epan/color_filters.h index 8618b150da..b90f9fd285 100644 --- a/epan/color_filters.h +++ b/epan/color_filters.h @@ -60,6 +60,13 @@ typedef struct _color_filter { void *color_edit_dlg_info; /* if filter is being edited, ptr to req'd info. GTK+ only. */ } color_filter_t; +inline static unsigned int +color_t_to_rgb(const color_t *color) { + return (((color->red >> 8) << 16) + | ((color->green >> 8) << 8) + | (color->blue >> 8)); +} + /** A color filter was added (while importing). * (color_filters.c calls this for every filter coming in) * |