1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +02:00

Remove unnecessary redraws

This commit is contained in:
Ivan Savenko 2023-03-03 01:21:11 +02:00
parent c011a5a9cf
commit f09897b2b4
4 changed files with 1 additions and 5 deletions

View File

@ -37,7 +37,6 @@ struct CPathsInfo;
VCMI_LIB_NAMESPACE_END
class CButton;
class CToggleGroup;
class CAdvMapInt;
class CCastleInterface;
class BattleInterface;

View File

@ -35,7 +35,6 @@ class CPicture;
class CFilledTexture;
class CButton;
class CToggleButton;
class CToggleGroup;
class CLabel;
class CTextBox;
class CAnimImage;

View File

@ -457,8 +457,7 @@ void CToggleGroup::selectionChanged(int to)
buttons[to]->setSelected(true);
onChange(to);
if (parent)
parent->redraw();
redraw();
}
int CToggleGroup::getSelected() const

View File

@ -36,7 +36,6 @@ class CTextInput;
class CListBox;
class CLabelGroup;
class CToggleButton;
class CToggleGroup;
class CVolumeSlider;
class CGStatusBar;
class CTextBox;