mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 16:41:22 +00:00
clamp to int
This commit is contained in:
parent
b897038c32
commit
84dbdeb06d
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ static void VID_GetRenderSize (int *w, int *h)
|
|||
*h = draw_context->h;
|
||||
#endif
|
||||
|
||||
scale_factor = 1.0f / CLAMP(1.0f, vid_scale.value, 4.0f);
|
||||
scale_factor = 1.0f / CLAMP(1, (int)vid_scale.value, 4);
|
||||
|
||||
*w *= scale_factor;
|
||||
*h *= scale_factor;
|
||||
|
|
Loading…
Reference in a new issue