Changeset - r28459:d9958d470fd0
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 9 months ago 2024-01-15 18:16:04
j.g.rennison@gmail.com
Fix: Viewport virt coords not updated when sprite font toggled (#11784)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/settings_gui.cpp
Show inline comments
 
@@ -566,24 +566,25 @@ struct GameOptionsWindow : Window {
 
#ifdef HAS_TRUETYPE_FONT
 
			case WID_GO_GUI_FONT_SPRITE:
 
				_fcsettings.prefer_sprite = !_fcsettings.prefer_sprite;
 

	
 
				this->SetWidgetLoweredState(WID_GO_GUI_FONT_SPRITE, _fcsettings.prefer_sprite);
 
				this->SetWidgetDisabledState(WID_GO_GUI_FONT_AA, _fcsettings.prefer_sprite);
 
				this->SetDirty();
 

	
 
				InitFontCache(false);
 
				InitFontCache(true);
 
				ClearFontCache();
 
				SetupWidgetDimensions();
 
				UpdateAllVirtCoords();
 
				ReInitAllWindows(true);
 
				break;
 

	
 
			case WID_GO_GUI_FONT_AA:
 
				_fcsettings.global_aa = !_fcsettings.global_aa;
 

	
 
				this->SetWidgetLoweredState(WID_GO_GUI_FONT_AA, _fcsettings.global_aa);
 
				this->SetDirty();
 

	
 
				ClearFontCache();
 
				break;
 
#endif /* HAS_TRUETYPE_FONT */
0 comments (0 inline, 0 general)