aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin_button.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gwin/gwin_button.c')
-rw-r--r--src/gwin/gwin_button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gwin/gwin_button.c b/src/gwin/gwin_button.c
index f4be41a1..8b3a2b6b 100644
--- a/src/gwin/gwin_button.c
+++ b/src/gwin/gwin_button.c
@@ -192,8 +192,8 @@ static const GColorSet *getButtonColors(GWidgetObject *gw) {
pcol = getButtonColors(gw);
/* Fill the box blended from variants of the fill color */
- tcol = gdispBlendColor(White, pcol->fill, BTN_TOP_FADE);
- bcol = gdispBlendColor(Black, pcol->fill, BTN_BOTTOM_FADE);
+ tcol = gdispBlendColor(GFX_WHITE, pcol->fill, BTN_TOP_FADE);
+ bcol = gdispBlendColor(GFX_BLACK, pcol->fill, BTN_BOTTOM_FADE);
dalpha = FIXED(255)/gw->g.height;
for(alpha = 0, i = 0; i < gw->g.height; i++, alpha += dalpha)
gdispGDrawLine(gw->g.display, gw->g.x, gw->g.y+i, gw->g.x+gw->g.width-2, gw->g.y+i, gdispBlendColor(bcol, tcol, NONFIXED(alpha)));