mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove clamp in favor of SDL_clamp
For the same reasons as I removed VVV_min/max in favor of SDL_min/max in
aa7b63fa5f, I'm doing the same thing here.
This commit is contained in:
@@ -78,7 +78,7 @@ static void volumesliderrender(void)
|
||||
num_positions = slider_length - symbol_length + 1;
|
||||
|
||||
offset = num_positions * (*volume_ptr) / USER_VOLUME_MAX;
|
||||
offset = clamp(offset, 0, slider_length - symbol_length);
|
||||
offset = SDL_clamp(offset, 0, slider_length - symbol_length);
|
||||
|
||||
/* SDL_strlcpy null-terminates, which would end the string in the middle of
|
||||
* it, which we don't want!
|
||||
|
||||
Reference in New Issue
Block a user