[loading window] Forgot to refresh before commiting, again.

This commit is contained in:
Henrik Andersson
2011-06-05 12:25:07 +02:00
parent 1679709981
commit 98204d5b56
2 changed files with 24 additions and 14 deletions
+9 -1
View File
@@ -19,5 +19,13 @@ InGameLoadingWindow::~InGameLoadingWindow() {
} }
void InGameLoadingWindow::SetText( RString str ) { void InGameLoadingWindow::SetText( RString str ) {
m_Text.SetText( str ); textChanged=true;
currentText=str;
}
void InGameLoadingWindow::Update(float delta) {
if(textChanged) {
m_Text.SetText( currentText );
textChanged=false;
}
} }
+3 -1
View File
@@ -11,9 +11,11 @@ public:
~InGameLoadingWindow(); ~InGameLoadingWindow();
void SetText( RString str ); void SetText( RString str );
void Update ( float delta );
private: private:
RageTimer m_LastDraw; bool textChanged;
RString currentText;
BitmapText m_Text; BitmapText m_Text;
}; };