mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Fix negative relative position not working (incorrectly clamped to 0, 100)
This commit is contained in:
@@ -2800,8 +2800,8 @@ static bool string_to_bool(const char *str, size_t len, bool *value) {
|
||||
}
|
||||
|
||||
static int clamp_scalar(int value) {
|
||||
if(value < 0)
|
||||
return 0;
|
||||
if(value < -100)
|
||||
return -100;
|
||||
else if(value > 100)
|
||||
return 100;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user