This commit is contained in:
Eduardo Bart
2011-08-15 06:55:43 -03:00
parent 92b54b6f55
commit a5b41f77ea
4 changed files with 7 additions and 2 deletions

View File

@@ -30,7 +30,8 @@ enum UIWidgetType {
UITypeLabel,
UITypeButton,
UITypeLineEdit,
UITypeWindow
UITypeWindow,
UITypeList
};
enum FocusReason {

View File

@@ -30,7 +30,7 @@ void UILabel::loadStyleFromOTML(const OTMLNodePtr& styleNode)
void UILabel::render()
{
getFont()->renderText(m_text, getGeometry(), m_align, m_fontColor);
m_font->renderText(m_text, m_rect, m_align, m_fontColor);
}
void UILabel::resizeToText()