Silence compiler warning: "... may be used uninitialized ..."
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
5fab123cd1
commit
228e5a0dc2
@ -251,7 +251,7 @@ static void generate_image(void* vv, int X, int Y, int W, uchar* buf) {
|
||||
for (int x = X; x < X+W; x++) {
|
||||
double Xf = double(x)/iw;
|
||||
double H,S; tohs(Xf,Yf,H,S);
|
||||
double r,g,b;
|
||||
double r=0, g=0, b=0;
|
||||
Fl_Color_Chooser::hsv2rgb(H,S,V,r,g,b);
|
||||
*buf++ = uchar(255*r+.5);
|
||||
*buf++ = uchar(255*g+.5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user