mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
- Fixed some compilation problem with non-existent function on so platforms
This commit is contained in:
@@ -2080,9 +2080,7 @@ wheelInitMatrix(W_ColorPanel *panel)
|
|||||||
ycor = 2 * y - 4 - colorWheelSize;
|
ycor = 2 * y - 4 - colorWheelSize;
|
||||||
|
|
||||||
/* RColor.saturation is unsigned char and will wrap after 255 */
|
/* RColor.saturation is unsigned char and will wrap after 255 */
|
||||||
sat = rint(255.0 *
|
sat = rint(255.0 * sqrt(xcor*xcor + ycor*ycor) / colorWheelSize);
|
||||||
sqrtf( (float)(xcor*xcor) + (float)(ycor*ycor)) /
|
|
||||||
(float)colorWheelSize);
|
|
||||||
|
|
||||||
cpColor.hsv.saturation = (unsigned char)sat;
|
cpColor.hsv.saturation = (unsigned char)sat;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user