mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- Fixed: Do not use scaled texture width when calculating xiscale.
SVN r1968 (trunk)
This commit is contained in:
parent
a0d6a47daf
commit
f1a672254d
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ void STACK_ARGS DCanvas::DrawTextureV(FTexture *img, double x, double y, uint32
|
||||||
dc_iscale = DivScale32(1, spryscale);
|
dc_iscale = DivScale32(1, spryscale);
|
||||||
dc_texturemid = FixedMul(-sprtopscreen, dc_iscale) + FixedMul(centeryfrac-FRACUNIT, dc_iscale);
|
dc_texturemid = FixedMul(-sprtopscreen, dc_iscale) + FixedMul(centeryfrac-FRACUNIT, dc_iscale);
|
||||||
fixed_t frac = 0;
|
fixed_t frac = 0;
|
||||||
double xiscale = parms.texwidth / parms.destwidth;
|
double xiscale = img->GetWidth() / parms.destwidth;
|
||||||
double x2 = x0 + parms.destwidth;
|
double x2 = x0 + parms.destwidth;
|
||||||
|
|
||||||
if (bottomclipper[0] != parms.dclip)
|
if (bottomclipper[0] != parms.dclip)
|
||||||
|
|
Loading…
Reference in a new issue