From 3eff51bb89b7b9d823d3236446b13690457b3e24 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 18 Aug 2016 17:26:54 -0300 Subject: [PATCH] eeshow/gui/history.c (RGBA, COLOR): move to style.h --- eeshow/gui/history.c | 4 ---- eeshow/gui/style.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eeshow/gui/history.c b/eeshow/gui/history.c index 1eb4ce9..c2728e3 100644 --- a/eeshow/gui/history.c +++ b/eeshow/gui/history.c @@ -36,10 +36,6 @@ static void hide_history(struct gui_ctx *ctx) } -#define RGBA(r, g, b, a) ((struct color) { (r), (g), (b), (a) }) -#define COLOR(color) RGBA(color) - - static void set_history_style(struct gui_hist *h, bool current) { struct gui_ctx *ctx = h->ctx; diff --git a/eeshow/gui/style.h b/eeshow/gui/style.h index a5e6d4d..de85b9b 100644 --- a/eeshow/gui/style.h +++ b/eeshow/gui/style.h @@ -27,6 +27,10 @@ #define BG_OLD 1.0, 0.8, 0.8, 0.8 +#define RGBA(r, g, b, a) ((struct color) { (r), (g), (b), (a) }) +#define COLOR(color) RGBA(color) + + extern struct overlay_style overlay_style_default; extern struct overlay_style overlay_style_dense; extern struct overlay_style overlay_style_diff_new;