more opengl graphics fixes

This commit is contained in:
Eduardo Bart
2012-06-02 15:58:30 -03:00
parent cde81666b8
commit 257f652bb7
13 changed files with 34 additions and 15 deletions

View File

@@ -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();
}

View File

@@ -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()

View File

@@ -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);
}