Codechange: Allow video drivers to handle the cursor themselves.

This commit is contained in:
Michael Lutz
2021-01-16 16:43:33 +01:00
parent 6776229047
commit 3e49aff35c
3 changed files with 23 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
#include "blitter/factory.hpp"
#include "core/math_func.hpp"
#include "core/mem_func.hpp"
#include "video/video_driver.hpp"
#include "table/sprites.h"
#include "table/strings.h"
@@ -977,6 +978,8 @@ void GfxClearSpriteCache()
SpriteCache *sc = GetSpriteCache(i);
if (sc->type != ST_RECOLOUR && sc->ptr != nullptr) DeleteEntryFromSpriteCache(i);
}
VideoDriver::GetInstance()->ClearSystemSprites();
}
/* static */ ReusableBuffer<SpriteLoader::CommonPixel> SpriteLoader::Sprite::buffer[ZOOM_LVL_COUNT];