mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
more opengl graphics fixes
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include <framework/platform/platformwindow.h>
|
||||
#include <framework/core/clock.h>
|
||||
#include <framework/otml/otmlnode.h>
|
||||
#include <framework/application.h>
|
||||
|
||||
UITextEdit::UITextEdit()
|
||||
{
|
||||
@@ -252,6 +253,7 @@ void UITextEdit::setCursorPos(int pos)
|
||||
else
|
||||
m_cursorPos = pos;
|
||||
update();
|
||||
g_app->repaint();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -514,4 +516,5 @@ bool UITextEdit::onMousePress(const Point& mousePos, Fw::MouseButton button)
|
||||
void UITextEdit::blinkCursor()
|
||||
{
|
||||
m_cursorTicks = g_clock.millis();
|
||||
g_app->repaint();
|
||||
}
|
||||
|
@@ -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()
|
||||
|
@@ -25,6 +25,7 @@
|
||||
#include <framework/graphics/fontmanager.h>
|
||||
#include <framework/graphics/painter.h>
|
||||
#include <framework/graphics/framebuffer.h>
|
||||
#include <framework/application.h>
|
||||
|
||||
void UIWidget::initText()
|
||||
{
|
||||
@@ -93,6 +94,7 @@ void UIWidget::drawText(const Rect& screenCoords)
|
||||
|
||||
void UIWidget::onTextChange(const std::string& text, const std::string& oldText)
|
||||
{
|
||||
g_app->repaint();
|
||||
callLuaField("onTextChange", text, oldText);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user