forked from mirror/openmw-tes3mp
Don't redraw ItemView if the size did not change
This commit is contained in:
parent
53c70dbdaa
commit
5fbce67b9d
1 changed files with 8 additions and 6 deletions
|
@ -140,26 +140,28 @@ void ItemView::onMouseWheel(MyGUI::Widget *_sender, int _rel)
|
||||||
|
|
||||||
void ItemView::setSize(const MyGUI::IntSize &_value)
|
void ItemView::setSize(const MyGUI::IntSize &_value)
|
||||||
{
|
{
|
||||||
|
bool changed = (_value.width != getWidth() || _value.height != getHeight());
|
||||||
Base::setSize(_value);
|
Base::setSize(_value);
|
||||||
update();
|
if (changed)
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemView::setSize(int _width, int _height)
|
void ItemView::setSize(int _width, int _height)
|
||||||
{
|
{
|
||||||
Base::setSize(_width, _height);
|
setSize(MyGUI::IntSize(_width, _height));
|
||||||
update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemView::setCoord(const MyGUI::IntCoord &_value)
|
void ItemView::setCoord(const MyGUI::IntCoord &_value)
|
||||||
{
|
{
|
||||||
|
bool changed = (_value.width != getWidth() || _value.height != getHeight());
|
||||||
Base::setCoord(_value);
|
Base::setCoord(_value);
|
||||||
update();
|
if (changed)
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemView::setCoord(int _left, int _top, int _width, int _height)
|
void ItemView::setCoord(int _left, int _top, int _width, int _height)
|
||||||
{
|
{
|
||||||
Base::setCoord(_left, _top, _width, _height);
|
setCoord(MyGUI::IntCoord(_left, _top, _width, _height));
|
||||||
update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemView::registerComponents()
|
void ItemView::registerComponents()
|
||||||
|
|
Loading…
Reference in a new issue