MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetFontAAState

Function GetFontAAState

src/fontcache.cpp:107–113  ·  view source on GitHub ↗

Check if a glyph should be rendered with anti-aliasing. */

Source from the content-addressed store, hash-verified

105
106/* Check if a glyph should be rendered with anti-aliasing. */
107bool GetFontAAState()
108{
109 /* AA is only supported for 32 bpp */
110 if (BlitterFactory::GetCurrentBlitter()->GetScreenDepth() != 32) return false;
111
112 return _fcsettings.global_aa;
113}
114
115void SetFont(FontSize fontsize, const std::string &font, uint size)
116{

Callers 4

SwitchNewGRFBlitterFunction · 0.85
ShapeMethod · 0.85
GetDrawGlyphShadowMethod · 0.85
GetGlyphMethod · 0.85

Calls 1

GetScreenDepthMethod · 0.45

Tested by

no test coverage detected