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

Function CheckBlitter

src/gfxinit.cpp:325–332  ·  view source on GitHub ↗

Check whether we still use the right blitter, or use another (better) one. */

Source from the content-addressed store, hash-verified

323
324/** Check whether we still use the right blitter, or use another (better) one. */
325void CheckBlitter()
326{
327 if (!SwitchNewGRFBlitter()) return;
328
329 FontCache::ClearFontCaches(FONTSIZES_ALL);
330 GfxClearSpriteCache();
331 ReInitAllWindows(false);
332}
333
334/** Initialise and load all the sprites. */
335void GfxLoadSprites()

Callers 2

MenuClickSettingsFunction · 0.85
OnDropdownSelectMethod · 0.85

Calls 3

SwitchNewGRFBlitterFunction · 0.85
GfxClearSpriteCacheFunction · 0.85
ReInitAllWindowsFunction · 0.85

Tested by

no test coverage detected