Fix compiler warning (STR #3081).

Note to devs: this was already fixed in branch-1.3-porting.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser
2016-09-01 12:41:19 +00:00
parent f2aabb5ef8
commit c0fb27cc2f
+2 -2
View File
@@ -39,8 +39,8 @@ static void shade_rect_top_bottom(int x, int y, int w, int h, Fl_Color fg1, Fl_C
int h_bottom = ((h/6) < (15) ? (h/6) : (15)); // min(h/6,15);
int h_flat = h-(h_top+h_bottom);
int j = 0;
float step_size_top = h_top>1?(0.999/(float)(h_top)):1;
float step_size_bottom = h_bottom>1?(0.999/(float)(h_bottom)):1;
float step_size_top = h_top>1?(0.999f/(float)(h_top)):1;
float step_size_bottom = h_bottom>1?(0.999f/(float)(h_bottom)):1;
// This loop generates the gradient at the top of the widget
for (float k = 1; k >= 0; k -= step_size_top){
gleam_color(fl_color_average(fl_color_average(fg1, fg2, th), fg1, k));