So yeah, I just did what the stubbed said

This commit is contained in:
ptitSeb 2019-08-17 16:20:08 +02:00
parent d20c647919
commit 669dc9148d

View File

@ -562,8 +562,7 @@ static void DrawAspectCorrectTextureCentered( class CTextureObject *_pTO, FLOAT
CTextureData *ptd = (CTextureData*)_pTO->GetData();
FLOAT fTexSizeI = ptd->GetPixWidth();
FLOAT fTexSizeJ = ptd->GetPixHeight();
FLOAT fHeight = fWidth*fTexSizeJ/fTexSizeJ; // FIXME: not fTexSizeJ/fTexSizeI ??
STUBBED("fWidth*fTexSizeJ/fTexSizeJ is most likely not intended!");
FLOAT fHeight = fWidth*fTexSizeJ/fTexSizeI;
_pDP->InitTexture( _pTO);
_pDP->AddTexture( fX-fWidth*0.5f, fY-fHeight*0.5f, fX+fWidth*0.5f, fY+fHeight*0.5f, 0, 0, 1, 1, col);