Initialise and load all the sprites. */
| 333 | |
| 334 | /** Initialise and load all the sprites. */ |
| 335 | void GfxLoadSprites() |
| 336 | { |
| 337 | Debug(sprite, 2, "Loading sprite set {}", _settings_game.game_creation.landscape); |
| 338 | |
| 339 | SwitchNewGRFBlitter(); |
| 340 | VideoDriver::GetInstance()->ClearSystemSprites(); |
| 341 | FontCache::ClearFontCaches(FONTSIZES_ALL); |
| 342 | GfxInitSpriteMem(); |
| 343 | LoadSpriteTables(); |
| 344 | GfxInitPalettes(); |
| 345 | |
| 346 | UpdateCursorSize(); |
| 347 | } |
| 348 | |
| 349 | /* instantiate here, because unique_ptr needs a complete type */ |
| 350 | GraphicsSet::GraphicsSet() = default; |
no test coverage detected