summaryrefslogtreecommitdiff
path: root/navit/graphics.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-26 13:31:10 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-26 13:31:10 +0000
commit34a451207d83306425fbca5c443524f31d2613ff (patch)
tree0f3c7e9046c62350d270fe9647520c5a04f6ced2 /navit/graphics.c
parent0aa333ec4c6fcc628d48af2b4368e460a2dde25c (diff)
downloadnavit-34a451207d83306425fbca5c443524f31d2613ff.tar.gz
Fix:Core:Better defines for colors
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4035 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.c')
-rw-r--r--navit/graphics.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/navit/graphics.c b/navit/graphics.c
index 986f8abd8..4bd2f0f96 100644
--- a/navit/graphics.c
+++ b/navit/graphics.c
@@ -305,20 +305,17 @@ graphics_overlay_resize(struct graphics *this_, struct point *p, int w, int h, i
static void
graphics_gc_init(struct graphics *this_)
{
- struct color color1={ 0xffff, 0xefef, 0xb7b7, 0xffff};
- struct color color2={ 0xffff, 0xefef, 0xb7b7, 0xffff};
- struct color color3={ 0x0000, 0x0000, 0x0000, 0xffff };
- struct color color4={ 0xffff, 0xffff, 0xffff, 0xffff };
- struct color color5={ 0xffff, 0xffff, 0xffff, 0xffff };
- struct color color6={ 0x0000, 0x0000, 0x0000, 0xffff };
+ struct color background={ COLOR_BACKGROUND_ };
+ struct color black={ COLOR_BLACK_ };
+ struct color white={ COLOR_WHITE_ };
if (!this_->gc[0] || !this_->gc[1] || !this_->gc[2])
return;
- graphics_gc_set_background(this_->gc[0], &color1 );
- graphics_gc_set_foreground(this_->gc[0], &color2 );
- graphics_gc_set_background(this_->gc[1], &color3 );
- graphics_gc_set_foreground(this_->gc[1], &color4 );
- graphics_gc_set_background(this_->gc[2], &color5 );
- graphics_gc_set_foreground(this_->gc[2], &color6 );
+ graphics_gc_set_background(this_->gc[0], &background );
+ graphics_gc_set_foreground(this_->gc[0], &background );
+ graphics_gc_set_background(this_->gc[1], &black );
+ graphics_gc_set_foreground(this_->gc[1], &white );
+ graphics_gc_set_background(this_->gc[2], &white );
+ graphics_gc_set_foreground(this_->gc[2], &black );
}