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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user