Remove clamp macro

Doesn't really need to exist since  all it's doing is inlining std::clamp.
This commit is contained in:
sukibaby
2024-09-03 20:50:48 -07:00
committed by teejusb
parent 51dbbeac1c
commit 21088502b9
36 changed files with 61 additions and 64 deletions
+2 -2
View File
@@ -1613,8 +1613,8 @@ void RageDisplay_Legacy::DrawLineStripInternal( const RageSpriteVertex v[], int
/* Clamp the width to the hardware max for both lines and points (whichever
* is more restrictive). */
fLineWidth = clamp( fLineWidth, g_line_range[0], g_line_range[1] );
fLineWidth = clamp( fLineWidth, g_point_range[0], g_point_range[1] );
fLineWidth = std::clamp( fLineWidth, g_line_range[0], g_line_range[1] );
fLineWidth = std::clamp( fLineWidth, g_point_range[0], g_point_range[1] );
/* Hmm. The granularity of lines and points might be different; for example,
* if lines are .5 and points are .25, we might want to snap the width to the