From 4f5ce252e0e9d0b7d0fabeffd853f1de506e4194 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Mon, 21 Dec 2009 02:32:36 -0600 Subject: [PATCH] Soften the glare effect in FL_BURNISHED_OVAL_BOX --- FL/Boxtypes.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FL/Boxtypes.C b/FL/Boxtypes.C index 1d0d9de..7af9378 100644 --- a/FL/Boxtypes.C +++ b/FL/Boxtypes.C @@ -48,10 +48,10 @@ burnished_oval_box ( int x, int y, int w, int h, Fl_Color c ) const int a1 = 10; const int a2 = 90; - fl_color( fl_lighter( c ) ); + fl_color( fl_color_average( FL_WHITE, c, 0.15f ) ); fl_pie( x, y, w, h, a1, a2 ); fl_pie( x, y, w, h, 180 + a1, 180 + a2 ); - fl_color( fl_lighter( fl_lighter( c ) ) ); + fl_color( fl_color_average( FL_WHITE, c, 0.25f ) ); const int d = (a2 - a1) / 2; fl_pie( x, y, w, h, a1 + (d / 2), a2 - (d / 2) );