Don't use macro

This commit is contained in:
Marc Gilleron 2021-10-01 00:54:52 +01:00
parent bfc4c0d363
commit c90170e92e

View File

@ -299,8 +299,8 @@ public:
int max_pos = pos + size;
int lim_max_pos = lim_pos + lim_size;
pos = CLAMP(pos, lim_pos, lim_max_pos);
max_pos = CLAMP(max_pos, lim_pos, lim_max_pos);
pos = clamp(pos, lim_pos, lim_max_pos);
max_pos = clamp(max_pos, lim_pos, lim_max_pos);
size = max_pos - pos;
if (size < 0) {