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;