From 16c91568bb4daf63e536c5b1101f3530c177f21f Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 31 May 2016 12:11:11 -0700 Subject: 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 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/color_filters.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'epan/color_filters.h') 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) * -- cgit v1.2.1