Don't use macro
This commit is contained in:
parent
bfc4c0d363
commit
c90170e92e
@ -299,8 +299,8 @@ public:
|
|||||||
int max_pos = pos + size;
|
int max_pos = pos + size;
|
||||||
int lim_max_pos = lim_pos + lim_size;
|
int lim_max_pos = lim_pos + lim_size;
|
||||||
|
|
||||||
pos = CLAMP(pos, lim_pos, lim_max_pos);
|
pos = clamp(pos, lim_pos, lim_max_pos);
|
||||||
max_pos = CLAMP(max_pos, lim_pos, lim_max_pos);
|
max_pos = clamp(max_pos, lim_pos, lim_max_pos);
|
||||||
|
|
||||||
size = max_pos - pos;
|
size = max_pos - pos;
|
||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user