Cleanup: use clamp_* from BLI_math (replace macro)

This commit is contained in:
2018-06-17 11:50:56 +02:00
parent 36e82b7759
commit 2f1e34cfcc
12 changed files with 21 additions and 19 deletions

View File

@@ -2305,7 +2305,7 @@ void ui_hsvcircle_pos_from_vals(uiBut *but, const rcti *rect, float *hsv, float
else
radius_t = hsv[1];
radius = CLAMPIS(radius_t, 0.0f, 1.0f) * radius;
radius = clamp_f(radius_t, 0.0f, 1.0f) * radius;
*xpos = centx + cosf(-ang) * radius;
*ypos = centy + sinf(-ang) * radius;
}