GUI: Implement dirty-checking for widget redraws
This commit is contained in:
parent
3b50b57f54
commit
0496ede62f
34 changed files with 245 additions and 199 deletions
|
@ -88,7 +88,7 @@ void FileBrowserDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32
|
|||
break;
|
||||
case kListSelectionChangedCmd:
|
||||
_fileName->setEditString(_fileList->getList().operator[](_fileList->getSelected()).c_str());
|
||||
_fileName->draw();
|
||||
_fileName->markAsDirty();
|
||||
break;
|
||||
case kListItemActivatedCmd:
|
||||
case kListItemDoubleClickedCmd:
|
||||
|
@ -154,7 +154,7 @@ void FileBrowserDialog::updateListing() {
|
|||
_fileList->scrollTo(0);
|
||||
|
||||
// Finally, redraw
|
||||
draw();
|
||||
markAsDirty();
|
||||
}
|
||||
|
||||
} // End of namespace GUI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue