mirror of
https://github.com/fltk/fltk.git
synced 2026-05-19 03:02:44 +08:00
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:
+2
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user