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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user