1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

fixed slow loading of map selection window

This commit is contained in:
Ivan Savenko 2013-12-29 12:18:02 +00:00
parent 0c5be52a42
commit 96cc1b0e75

View File

@ -1906,6 +1906,7 @@ InfoCard::InfoCard( bool Network )
difficulty(nullptr), sizes(nullptr), sFlags(nullptr)
{
OBJ_CONSTRUCTION_CAPTURING_ALL;
CIntObject::type |= REDRAW_PARENT;
pos.x += 393;
pos.y += 6;
addUsedEvents(RCLICK);
@ -2135,7 +2136,7 @@ void InfoCard::changeSelection( const CMapInfo *to )
difficulty->select(SEL->sInfo.difficulty, 0);
}
}
GH.totalRedraw();
redraw();
}
void InfoCard::clickRight( tribool down, bool previousState )