mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-09 08:22:28 +00:00
V_DrawStretchyFixedPatch: round bottom y value to nearest integer
Fixes 1px overshoot at some scales.
This commit is contained in:
parent
520e2f796b
commit
4944b605d4
1 changed files with 1 additions and 1 deletions
|
|
@ -891,7 +891,7 @@ void V_DrawStretchyFixedPatch(fixed_t x, fixed_t y, fixed_t pscale, fixed_t vsca
|
|||
float fx = x;
|
||||
float fy = y;
|
||||
float fx2 = fx + pwidth;
|
||||
float fy2 = fy + static_cast<float>(patch->height) * fdupy;
|
||||
float fy2 = fy + std::round(static_cast<float>(patch->height) * fdupy);
|
||||
float falpha = 1.f;
|
||||
float umin = 0.f;
|
||||
float umax = 1.f;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue