diff options
Diffstat (limited to 'src/fl_gtk.cxx')
| -rw-r--r-- | src/fl_gtk.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fl_gtk.cxx b/src/fl_gtk.cxx index edf3f920a..7b4126692 100644 --- a/src/fl_gtk.cxx +++ b/src/fl_gtk.cxx @@ -30,11 +30,9 @@ extern void fl_internal_boxtype(Fl_Boxtype, Fl_Box_Draw_F*); static void gtk_color(Fl_Color c) { - if (Fl::draw_box_active()) fl_color(c); - else fl_color(fl_inactive(c)); + Fl::set_box_color(c); } - static void gtk_up_frame(int x, int y, int w, int h, Fl_Color c) { gtk_color(fl_color_average(FL_WHITE, c, 0.5)); fl_xyline(x + 2, y + 1, x + w - 3); @@ -204,7 +202,7 @@ static void draw(int which, int x,int y,int w,int h, int inset) } static void gtk_round_up_box(int x, int y, int w, int h, Fl_Color c) { - fl_color(c); + gtk_color(c); draw(FILL, x, y, w, h, 2); gtk_color(fl_color_average(FL_BLACK, c, 0.025f)); @@ -235,7 +233,7 @@ static void gtk_round_up_box(int x, int y, int w, int h, Fl_Color c) { } static void gtk_round_down_box(int x, int y, int w, int h, Fl_Color c) { - fl_color(c); + gtk_color(c); draw(FILL, x, y, w, h, 2); gtk_color(fl_color_average(FL_BLACK, c, 0.05f)); |
