From: martin-s Date: Wed, 26 Jan 2011 13:32:03 +0000 (+0000) Subject: Fix:Core:Better defines for colors X-Git-Tag: navit-0.5.0.5194svn~1159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3df90cf6bd3160dc0191a76ae51902a77e41668a;p=profile%2Fivi%2Fnavit.git Fix:Core:Better defines for colors git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4036 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- 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