mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
@ -65,8 +65,10 @@ void CButtonBase::update()
|
||||
|
||||
if (active)
|
||||
{
|
||||
showAll(screen);
|
||||
showAll(screen2);//Any way to remove one of showAll()?
|
||||
if (parent)
|
||||
parent->redraw();
|
||||
else
|
||||
redraw();
|
||||
}
|
||||
}
|
||||
|
||||
@ -259,7 +261,6 @@ void AdventureMapButton::setImage(CAnimation* anim, bool playerColoredButton)
|
||||
|
||||
pos.w = image->pos.w;
|
||||
pos.h = image->pos.h;
|
||||
|
||||
}
|
||||
|
||||
void AdventureMapButton::setPlayerColor(int player)
|
||||
@ -268,11 +269,6 @@ void AdventureMapButton::setPlayerColor(int player)
|
||||
image->playerColored(player);
|
||||
}
|
||||
|
||||
void AdventureMapButton::show(SDL_Surface *to)
|
||||
{
|
||||
showAll(to);
|
||||
}
|
||||
|
||||
void AdventureMapButton::showAll(SDL_Surface *to)
|
||||
{
|
||||
CIntObject::showAll(to);
|
||||
|
Reference in New Issue
Block a user