Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix pickup text
  • Loading branch information
Sergeanur committed Jan 7, 2021
1 parent c2672bd commit 0428b5b694b47a5135b8e09ee779a923b44c93bc
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/control/Pickups.cpp
@@ -1336,7 +1336,7 @@ CPickups::RenderPickUpText()
#ifdef FIX_BUGS
const float MAX_SCALE = SCREEN_WIDTH / DEFAULT_SCREEN_WIDTH;
#else
const float MAX_SCALE = RsGlobal.width / DEFAULT_SCREEN_WIDTH;
float MAX_SCALE = RsGlobal.width / DEFAULT_SCREEN_WIDTH;
#endif

float fScaleY = aMessages[i].m_dist.y / 30.0f;
@@ -1345,11 +1345,7 @@ CPickups::RenderPickUpText()
float fScaleX = aMessages[i].m_dist.x / 30.0f;
if (fScaleX > MAX_SCALE) fScaleX = MAX_SCALE;

#ifdef FIX_BUGS
CFont::SetScale(SCREEN_SCALE_X(fScaleX), SCREEN_SCALE_Y(fScaleY));
#else
CFont::SetScale(fScaleX, fScaleY);
#endif
CFont::SetScale(fScaleX, fScaleY); // this shouldn't be scaled
CFont::SetCentreOn();
CFont::SetCentreSize(SCREEN_WIDTH);
CFont::SetJustifyOff();

0 comments on commit 0428b5b

Please sign in to comment.