1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

- Fixed some compilation problem with non-existent function on so platforms

This commit is contained in:
dan
2000-01-09 05:28:30 +00:00
parent 3a47d8430e
commit 448b08de0b

View File

@@ -2080,9 +2080,7 @@ wheelInitMatrix(W_ColorPanel *panel)
ycor = 2 * y - 4 - colorWheelSize;
/* RColor.saturation is unsigned char and will wrap after 255 */
sat = rint(255.0 *
sqrtf( (float)(xcor*xcor) + (float)(ycor*ycor)) /
(float)colorWheelSize);
sat = rint(255.0 * sqrt(xcor*xcor + ycor*ycor) / colorWheelSize);
cpColor.hsv.saturation = (unsigned char)sat;