1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

- minor tweaks to quest window

- fixed #531
- fixed query crash (empty funciton)
This commit is contained in:
Ivan Savenko
2012-07-21 20:16:54 +00:00
parent 0665850d9d
commit 13de841e10
16 changed files with 116 additions and 109 deletions

View File

@ -176,6 +176,25 @@ void CPicture::colorize(int player)
graphics->blueToPlayersAdv(bg, player);
}
CFilledTexture::CFilledTexture(std::string imageName, Rect position):
CIntObject(0, position.topLeft()),
texture(BitmapHandler::loadBitmap(imageName))
{
pos.w = position.w;
pos.h = position.h;
}
CFilledTexture::~CFilledTexture()
{
SDL_FreeSurface(texture);
}
void CFilledTexture::showAll(SDL_Surface *to)
{
CSDL_Ext::CClipRectGuard guard(to, pos);
CSDL_Ext::fillTexture(to, texture);
}
CButtonBase::CButtonBase()
{
swappedImages = keepFrame = false;