Use push/pop mechanism for cursors

This commit is contained in:
Eduardo Bart
2013-01-25 11:47:51 -02:00
parent 3a47c4f2e1
commit a144174c41
10 changed files with 45 additions and 29 deletions

View File

@@ -590,9 +590,9 @@ void UITextEdit::onHoverChange(bool hovered)
{
if(m_changeCursorImage) {
if(hovered)
g_mouse.setCursor("text");
g_mouse.pushCursor("text");
else
g_mouse.restoreCursor();
g_mouse.popCursor("text");
}
}