|
|
|
@ -436,7 +436,7 @@ static bool PadSprites(SpriteLoader::Sprite *sprite, unsigned int sprite_avail,
|
|
|
|
|
static bool ResizeSprites(SpriteLoader::Sprite *sprite, unsigned int sprite_avail, SpriteEncoder *encoder)
|
|
|
|
|
{
|
|
|
|
|
/* Create a fully zoomed image if it does not exist */
|
|
|
|
|
ZoomLevel first_avail = static_cast<ZoomLevel>(FIND_FIRST_BIT(sprite_avail));
|
|
|
|
|
ZoomLevel first_avail = static_cast<ZoomLevel>(FindFirstBit(sprite_avail));
|
|
|
|
|
if (first_avail != ZOOM_LVL_NORMAL) {
|
|
|
|
|
if (!ResizeSpriteIn(sprite, first_avail, ZOOM_LVL_NORMAL)) return false;
|
|
|
|
|
SetBit(sprite_avail, ZOOM_LVL_NORMAL);
|
|
|
|
|