mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-25 15:14:51 +01:00
So yeah, I just did what the stubbed said
This commit is contained in:
parent
d20c647919
commit
669dc9148d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user