diff options
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/newgui.cpp | 15 | 
1 files changed, 7 insertions, 8 deletions
| diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 9b4529616b..74753584b6 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -77,16 +77,15 @@ void NewGui::updateColors() {  void NewGui::updateScaleFactor() {  	if(!_scaleEnable) {  		_scaleFactor = 1; -		return; +	} else { +		enum { +			kDefaultGUIWidth = 320, +			kDefaultGUIHeight = 200 +		}; +	 +		_scaleFactor = MIN(_system->getOverlayWidth() / kDefaultGUIWidth, _system->getOverlayHeight() / kDefaultGUIHeight);  	} -	enum { -		kDefaultGUIWidth = 320, -		kDefaultGUIHeight = 200 -	}; - -	_scaleFactor = MIN(_system->getOverlayWidth() / kDefaultGUIWidth, _system->getOverlayHeight() / kDefaultGUIHeight); -  	// Pick the font depending on the scale factor.  	if (_scaleFactor == 1)  		_font = FontMan.getFontByUsage(Graphics::FontManager::kGUIFont); | 
