mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-03-09 10:50:56 +00:00
Revert "Merged https://github.com/coelckers/gzdoom/pull/1520 (Trim Sprite Borders)"
This reverts commit 74342513fc
.
This commit is contained in:
parent
f42ffb6c9a
commit
4c33b000e3
1 changed files with 1 additions and 11 deletions
|
@ -325,16 +325,6 @@ void FGameTexture::SetupSpriteData()
|
|||
//
|
||||
//===========================================================================
|
||||
|
||||
CUSTOM_CVAR(Bool, r_trimspriteborders, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
{
|
||||
for (int i = 0; i < TexMan.NumTextures(); i++)
|
||||
{
|
||||
auto tex = TexMan.GetGameTexture(FSetTextureID(i));
|
||||
if (tex->GetUseType() == ETextureType::Sprite)
|
||||
tex->SetupSpriteData();
|
||||
}
|
||||
}
|
||||
|
||||
void FGameTexture::SetSpriteRect()
|
||||
{
|
||||
|
||||
|
@ -372,7 +362,7 @@ void FGameTexture::SetSpriteRect()
|
|||
spi.mSpriteRect.width = (float)spi.spriteWidth / fxScale;
|
||||
spi.mSpriteRect.height = (float)spi.spriteHeight / fyScale;
|
||||
|
||||
if (spi.mTrimResult > 0 && r_trimspriteborders)
|
||||
if (spi.mTrimResult > 0)
|
||||
{
|
||||
spi.mSpriteRect.left += (float)spi.trim[0] / fxScale;
|
||||
spi.mSpriteRect.top += (float)spi.trim[1] / fyScale;
|
||||
|
|
Loading…
Reference in a new issue