Added a method MainWindow::needsRefresh
This commit is contained in:
@@ -52,6 +52,11 @@ class MainWindow: public Window {
|
||||
|
||||
void invalidate(const rect_t & rect) override;
|
||||
|
||||
bool needsRefresh() const
|
||||
{
|
||||
return invalidatedRect.w > 0;
|
||||
}
|
||||
|
||||
bool refresh();
|
||||
|
||||
void run(bool trash=true);
|
||||
|
||||
Reference in New Issue
Block a user