diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-11-12 19:36:18 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-11-12 19:36:31 +0300 |
commit | c34c688b47521226503052616e8c1961b4d81acf (patch) | |
tree | 016c6bb2d85f68d0a582ae9128feb35515d53cc0 /source/blender/editors/interface | |
parent | 3b9700aa5171c7abb3fd14270ebb3a2b4e0e8b83 (diff) |
Fix build: min and max not found.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c index d5ec60d1730..8c785f63978 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -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]; |