From a5ec361715cadf4853383702932a52ce54976a0f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 11 Aug 2009 20:40:09 +0000 Subject: [PATCH] - Fixed: The pause sprite was not centered correctly when it was a scaled graphic. SVN r1769 (trunk) --- docs/rh-log.txt | 6 +++++- src/d_main.cpp | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 0b70e6be5d..2bfd67b840 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -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. diff --git a/src/d_main.cpp b/src/d_main.cpp index f3224713e5..e48762ea7d 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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;