mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibGUI: Only redraw the dirty rect in GWidget.
There is some trouble here with the asynchronous nature of WindowServer and the single per-window backing store we're drawing into. If we start repainting a widget with a pending invalidation, that invalidation might get flushed by the WindowServer mid-paint.
This commit is contained in:
parent
ea6678b7b3
commit
a9e60fc800
4 changed files with 10 additions and 8 deletions
|
@ -37,6 +37,8 @@ public:
|
|||
|
||||
void close();
|
||||
|
||||
GWidget* main_widget() { return m_main_widget; }
|
||||
const GWidget* main_widget() const { return m_main_widget; }
|
||||
void set_main_widget(GWidget*);
|
||||
|
||||
GraphicsBitmap* backing() { return m_backing.ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue