Commit 9717d885 authored by Matthias Möller's avatar Matthias Möller
Browse files

type conversion

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17200 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 849c0528
......@@ -89,7 +89,7 @@ float HaltonColors::halton(int index)
while (I > 0) {
int digit = I % base;
H = H + half * digit;
I = inverse_base * (I - digit);
I = (int)(inverse_base * (I - digit));
half *= inverse_base;
}
return H;
......@@ -160,7 +160,7 @@ ACG::Vec4f HaltonColors::HSL2RGB(double h, double sl, double l)
}
}
return Vec4f(r, g, b, 1.0f);
return Vec4f((float)r, (float)g, (float)b, 1.0f);
}
ACG::Vec4f HaltonColors::get_next_color()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment