- Fixed: The pause sprite was not centered correctly when it was a scaled

graphic.


SVN r1769 (trunk)
This commit is contained in:
Christoph Oelckers 2009-08-11 20:40:09 +00:00
parent 2a9351fa61
commit a5ec361715
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,8 @@
August 10, 2009
August 11, 2009 (Changes by Graf Zahl)
- Fixed: The pause sprite was not centered correctly when it was a scaled
graphic.
August 10, 2009
- Fixed: P_TestMobjZ() needs THRUSPECIES and THRUACTORS checks, too.
- Fixed: The UDMF loader did not initialize the sectors' sectornum property.

View File

@ -738,8 +738,8 @@ void D_Display ()
int x;
tex = TexMan[gameinfo.gametype & (GAME_DoomStrifeChex) ? "M_PAUSE" : "PAUSED"];
x = (SCREENWIDTH - tex->GetWidth()*CleanXfac)/2 +
tex->LeftOffset*CleanXfac;
x = (SCREENWIDTH - tex->GetScaledWidth() * CleanXfac)/2 +
tex->GetScaledLeftOffset() * CleanXfac;
screen->DrawTexture (tex, x, 4, DTA_CleanNoMove, true, TAG_DONE);
}
@ -752,7 +752,7 @@ void D_Display ()
if (picnum.isValid())
{
FTexture *tex = TexMan[picnum];
screen->DrawTexture (tex, 160-tex->GetWidth()/2, 100-tex->GetHeight()/2,
screen->DrawTexture (tex, 160 - tex->GetScaledWidth()/2, 100 - tex->GetScaledHeight()/2,
DTA_320x200, true, TAG_DONE);
}
NoWipe = 10;