mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
V_DrawStretchyFixedPatch: fix flipped patch offsets
This commit is contained in:
parent
ad5b70439c
commit
eae2bc5c3c
1 changed files with 2 additions and 2 deletions
|
|
@ -842,13 +842,13 @@ void V_DrawStretchyFixedPatch(fixed_t x, fixed_t y, fixed_t pscale, fixed_t vsca
|
||||||
|
|
||||||
// left offset
|
// left offset
|
||||||
if (scrn & V_FLIP)
|
if (scrn & V_FLIP)
|
||||||
offsetx = FixedMul((patch->width - patch->leftoffset)<<FRACBITS, pscale) + 1;
|
offsetx = FixedMul((patch->width - patch->leftoffset)<<FRACBITS, pscale);
|
||||||
else
|
else
|
||||||
offsetx = FixedMul(patch->leftoffset<<FRACBITS, pscale);
|
offsetx = FixedMul(patch->leftoffset<<FRACBITS, pscale);
|
||||||
|
|
||||||
// top offset
|
// top offset
|
||||||
if (scrn & V_VFLIP)
|
if (scrn & V_VFLIP)
|
||||||
offsety = FixedMul((patch->height - patch->topoffset)<<FRACBITS, vscale) + 1;
|
offsety = FixedMul((patch->height - patch->topoffset)<<FRACBITS, vscale);
|
||||||
else
|
else
|
||||||
offsety = FixedMul(patch->topoffset<<FRACBITS, vscale);
|
offsety = FixedMul(patch->topoffset<<FRACBITS, vscale);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue