mirror of
https://github.com/edubart/otclient.git
synced 2025-12-15 05:09:46 +01:00
more opengl graphics fixes
This commit is contained in:
@@ -811,7 +811,6 @@ bool UIWidget::setRect(const Rect& rect)
|
||||
if(rect == oldRect)
|
||||
return false;
|
||||
|
||||
g_app->repaint();
|
||||
m_rect = rect;
|
||||
|
||||
// updates own layout
|
||||
@@ -1353,6 +1352,8 @@ void UIWidget::onStyleApply(const std::string& styleName, const OTMLNodePtr& sty
|
||||
parseBaseStyle(styleNode);
|
||||
parseImageStyle(styleNode);
|
||||
parseTextStyle(styleNode);
|
||||
|
||||
g_app->repaint();
|
||||
}
|
||||
|
||||
void UIWidget::onGeometryChange(const Rect& oldRect, const Rect& newRect)
|
||||
@@ -1367,6 +1368,8 @@ void UIWidget::onGeometryChange(const Rect& oldRect, const Rect& newRect)
|
||||
}
|
||||
|
||||
callLuaField("onGeometryChange", oldRect, newRect);
|
||||
|
||||
g_app->repaint();
|
||||
}
|
||||
|
||||
void UIWidget::onLayoutUpdate()
|
||||
|
||||
Reference in New Issue
Block a user