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:
Misa
2021-12-22 16:55:07 -08:00
committed by Ethan Lee
parent e40f54f06b
commit ef03c2a54a
5 changed files with 8 additions and 13 deletions

View File

@@ -521,10 +521,10 @@ void Graphics::do_print(
int position = 0;
std::string::const_iterator iter = text.begin();
r = clamp(r, 0, 255);
g = clamp(g, 0, 255);
b = clamp(b, 0, 255);
a = clamp(a, 0, 255);
r = SDL_clamp(r, 0, 255);
g = SDL_clamp(g, 0, 255);
b = SDL_clamp(b, 0, 255);
a = SDL_clamp(a, 0, 255);
ct.colour = getRGBA(r, g, b, a);