diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-05-31 12:11:11 -0700 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-06-01 04:27:13 +0000 |
commit | 16c91568bb4daf63e536c5b1101f3530c177f21f (patch) | |
tree | 1f67f784befe8af5dfc8e4c4d6cde8413c0862fd /epan | |
parent | 20a41839ab33f24a83b68c900b59421e03c658b8 (diff) |
Qt: Color _ANY and _TCP sequence analysis items.
For SEQ_ANALYSIS_ANY, color each sequence diagram item according to its
associated packet. For SEQ_ANALYSIS_TCP, color each item according to
its stream.
Bug: 12065
Change-Id: Ib43490fe55039fbcfa793223b5850233a2694a26
Reviewed-on: https://code.wireshark.org/review/15651
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-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) * |