1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-11 23:48:19 +02:00
-- replaced 8to24 bilt with sdl blit
-- fixed alpha values for images loaded via SDL
This commit is contained in:
Ivan Savenko
2012-05-27 14:07:12 +00:00
parent 7ddf76a081
commit c512069177
4 changed files with 11 additions and 5 deletions

View File

@@ -700,9 +700,9 @@ void CStackQueue::StackBox::showAll(SDL_Surface * to)
{
graphics->blueToPlayersAdv(bg, my->owner);
//SDL_UpdateRect(bg, 0, 0, 0, 0);
SDL_Rect temp_rect = genRect(bg->h, bg->w, pos.x, pos.y);
CSDL_Ext::blit8bppAlphaTo24bpp(bg, NULL, to, &temp_rect);
//blitAt(bg, pos, to);
//SDL_Rect temp_rect = genRect(bg->h, bg->w, pos.x, pos.y);
//CSDL_Ext::blit8bppAlphaTo24bpp(bg, NULL, to, &temp_rect);
blitAt(bg, pos, to);
blitAt(graphics->bigImgs[my->getCreature()->idNumber], pos.x +9, pos.y + 1, to);
printAtMiddleLoc(makeNumberShort(my->count), pos.w/2, pos.h - 12, FONT_MEDIUM, Colors::Cornsilk, to);
}