mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
- flat sprites are already square, no need to adjust them
This commit is contained in:
parent
2c25cc1d9b
commit
85ae8f8194
1 changed files with 1 additions and 1 deletions
|
@ -1036,7 +1036,7 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
|
|
||||||
r.Scale(sprscale.X, isSpriteShadow ? sprscale.Y * 0.15 * thing->isoscaleY : sprscale.Y * thing->isoscaleY);
|
r.Scale(sprscale.X, isSpriteShadow ? sprscale.Y * 0.15 * thing->isoscaleY : sprscale.Y * thing->isoscaleY);
|
||||||
|
|
||||||
if ((thing->renderflags & (RF_ROLLSPRITE|RF_FLATSPRITE)) || (thing->renderflags2 & RF2_SQUAREPIXELS))
|
if ((thing->renderflags & RF_ROLLSPRITE) || (thing->renderflags2 & RF2_SQUAREPIXELS))
|
||||||
{
|
{
|
||||||
double ps = di->Level->pixelstretch;
|
double ps = di->Level->pixelstretch;
|
||||||
double mult = 1.0 / sqrt(ps); // shrink slightly
|
double mult = 1.0 / sqrt(ps); // shrink slightly
|
||||||
|
|
Loading…
Reference in a new issue