mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +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();
|
CTextureData *ptd = (CTextureData*)_pTO->GetData();
|
||||||
FLOAT fTexSizeI = ptd->GetPixWidth();
|
FLOAT fTexSizeI = ptd->GetPixWidth();
|
||||||
FLOAT fTexSizeJ = ptd->GetPixHeight();
|
FLOAT fTexSizeJ = ptd->GetPixHeight();
|
||||||
FLOAT fHeight = fWidth*fTexSizeJ/fTexSizeJ; // FIXME: not fTexSizeJ/fTexSizeI ??
|
FLOAT fHeight = fWidth*fTexSizeJ/fTexSizeI;
|
||||||
STUBBED("fWidth*fTexSizeJ/fTexSizeJ is most likely not intended!");
|
|
||||||
|
|
||||||
_pDP->InitTexture( _pTO);
|
_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);
|
_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