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:
Albrecht Schlosser 2012-08-18 10:47:48 +00:00
parent 5fab123cd1
commit 228e5a0dc2

View File

@ -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);