Fix build: min and max not found.

This commit is contained in:
Alexander Gavrilov 2018-11-12 19:36:18 +03:00
parent 3b9700aa51
commit c34c688b47
1 changed files with 1 additions and 1 deletions

View File

@ -1840,7 +1840,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, const rcti
immBindBuiltinProgram(GPU_SHADER_2D_FLAT_COLOR);
cmp = cuma->curve;
GPU_point_size(max(1.0f, min(UI_DPI_FAC / but->block->aspect * 4.0f, 4.0f)));
GPU_point_size(max_ff(1.0f, min_ff(UI_DPI_FAC / but->block->aspect * 4.0f, 4.0f)));
immBegin(GPU_PRIM_POINTS, cuma->totpoint);
for (int a = 0; a < cuma->totpoint; a++) {
float color[4];