mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
destend now scales the added-on patch width properly if needed
This commit is contained in:
parent
c63b746714
commit
76d71bda92
1 changed files with 10 additions and 1 deletions
|
@ -477,7 +477,16 @@ void V_DrawFixedPatch(fixed_t x, fixed_t y, fixed_t pscale, INT32 scrn, patch_t
|
|||
}
|
||||
|
||||
deststart = desttop;
|
||||
destend = desttop + SHORT(patch->width) * dupx;
|
||||
if (pscale != FRACUNIT) // scale width properly
|
||||
{
|
||||
fixed_t pwidth = SHORT(patch->width)<<FRACBITS;
|
||||
pwidth = FixedMul(pwidth, pscale);
|
||||
pwidth = FixedMul(pwidth, dupx<<FRACBITS);
|
||||
pwidth >>= FRACBITS;
|
||||
destend = desttop + pwidth;
|
||||
}
|
||||
else
|
||||
destend = desttop + SHORT(patch->width) * dupx;
|
||||
|
||||
for (col = 0; (col>>FRACBITS) < SHORT(patch->width); col += colfrac, ++x, desttop++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue