mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-30 23:51:05 +00:00
GZDoom compatibility for PSPF_FLIP.
This commit is contained in:
parent
7510ad1635
commit
41bf9def80
1 changed files with 10 additions and 9 deletions
|
@ -129,20 +129,21 @@ void FGLRenderer::DrawPSprite (player_t * player,DPSprite *psp, float sx, float
|
||||||
y1 = viewwindowy + vh / 2 - (ftexturemid * scale);
|
y1 = viewwindowy + vh / 2 - (ftexturemid * scale);
|
||||||
y2 = y1 + (r.height * scale) + 1;
|
y2 = y1 + (r.height * scale) + 1;
|
||||||
|
|
||||||
if (!mirror)
|
if (!(mirror) != !(psp->Flags & PSPF_FLIP))
|
||||||
{
|
|
||||||
fU1=tex->GetSpriteUL();
|
|
||||||
fV1=tex->GetSpriteVT();
|
|
||||||
fU2=tex->GetSpriteUR();
|
|
||||||
fV2=tex->GetSpriteVB();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
fU2 = tex->GetSpriteUL();
|
fU2 = tex->GetSpriteUL();
|
||||||
fV1 = tex->GetSpriteVT();
|
fV1 = tex->GetSpriteVT();
|
||||||
fU1 = tex->GetSpriteUR();
|
fU1 = tex->GetSpriteUR();
|
||||||
fV2 = tex->GetSpriteVB();
|
fV2 = tex->GetSpriteVB();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fU1 = tex->GetSpriteUL();
|
||||||
|
fV1 = tex->GetSpriteVT();
|
||||||
|
fU2 = tex->GetSpriteUR();
|
||||||
|
fV2 = tex->GetSpriteVB();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (tex->GetTransparent() || OverrideShader != -1)
|
if (tex->GetTransparent() || OverrideShader != -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue