Replace custom Clamp with std::clamp
Fixes bug in parser that had the elements in the wrong order due to our custom version not matching the standard order
This commit is contained in:
@@ -311,7 +311,7 @@ void STROKE_PARAMS_PARSER::ParseStroke( STROKE_PARAMS& aStroke )
|
||||
color.r = parseInt( "red" ) / 255.0;
|
||||
color.g = parseInt( "green" ) / 255.0;
|
||||
color.b = parseInt( "blue" ) / 255.0;
|
||||
color.a = Clamp( parseDouble( "alpha" ), 0.0, 1.0 );
|
||||
color.a = std::clamp( parseDouble( "alpha" ), 0.0, 1.0 );
|
||||
|
||||
aStroke.SetColor( color );
|
||||
NeedRIGHT();
|
||||
|
||||
Reference in New Issue
Block a user