From 3df90cf6bd3160dc0191a76ae51902a77e41668a Mon Sep 17 00:00:00 2001 From: martin-s Date: Wed, 26 Jan 2011 13:32:03 +0000 Subject: [PATCH] Fix:Core:Better defines for colors git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4036 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/color.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/navit/navit/color.h b/navit/navit/color.h index e042c19..f086eab 100644 --- a/navit/navit/color.h +++ b/navit/navit/color.h @@ -24,9 +24,13 @@ struct color { int r,g,b,a; }; -#define COLOR_WHITE ((struct color) {0xffff,0xffff,0xffff,0xffff}) -#define COLOR_BLACK ((struct color) {0x0000,0x0000,0x0000,0xffff}) -#define COLOR_TRANSPARENT ((struct color) {0x0000,0x0000,0x0000,0x0000}) +#define COLOR_WHITE_ 0xffff,0xffff,0xffff,0xffff +#define COLOR_BLACK_ 0x0000,0x0000,0x0000,0xffff +#define COLOR_BACKGROUND_ 0xffff, 0xefef, 0xb7b7, 0xffff +#define COLOR_TRANSPARENT__ 0x0000,0x0000,0x0000,0xffff +#define COLOR_WHITE ((struct color) {COLOR_WHITE_}) +#define COLOR_BLACK ((struct color) {COLOR_BLACK_}) +#define COLOR_TRANSPARENT ((struct color) {COLOR_TRANSPARENT_}) #define COLOR_FMT "0x%x,0x%x,0x%x,0x%x" #define COLOR_ARGS(c) (c).r,(c).g,(c).b,(c).a -- 2.7.4