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
|
@ -135,7 +135,7 @@ void ScrollBarWidget::handleMouseMoved(int x, int y, int button) {
|
|||
_part = kSliderPart;
|
||||
|
||||
if (old_part != _part)
|
||||
draw();
|
||||
markAsDirty();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ void ScrollBarWidget::checkBounds(int old_pos) {
|
|||
|
||||
if (old_pos != _currentPos) {
|
||||
recalc();
|
||||
draw();
|
||||
markAsDirty();
|
||||
sendCommand(kSetPositionCmd, _currentPos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue