Sprite cache: Allow caching only required subset of sprite zoom levels

Enable for blitters based on 32bpp_optimized or SSE
This commit is contained in:
Jonathan G Rennison
2023-08-22 22:16:04 +01:00
parent 785216db73
commit 46f5fb9f25
28 changed files with 423 additions and 172 deletions

View File

@@ -118,7 +118,7 @@ Rect16 VehicleSpriteSeq::GetBounds() const
Rect16 bounds;
bounds.left = bounds.top = bounds.right = bounds.bottom = 0;
for (uint i = 0; i < this->count; ++i) {
const Sprite *spr = GetSprite(this->seq[i].sprite, SpriteType::Normal);
const Sprite *spr = GetSprite(this->seq[i].sprite, SpriteType::Normal, 0);
if (i == 0) {
bounds.left = spr->x_offs;
bounds.top = spr->y_offs;