mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +00:00
Rework the rendering model so that clients instantiate backing stores.
This makes interactive resizing work a lot better, althought it's still not perfect. There are still glitches and unpleasant flashes of zeroed memory.
This commit is contained in:
parent
e0b81ee4c9
commit
fa02d2a39b
17 changed files with 185 additions and 46 deletions
|
@ -76,8 +76,8 @@ WSWindow& WSMenu::ensure_menu_window()
|
|||
void WSMenu::draw()
|
||||
{
|
||||
ASSERT(menu_window());
|
||||
ASSERT(menu_window()->backing());
|
||||
Painter painter(*menu_window()->backing());
|
||||
ASSERT(menu_window()->backing_store());
|
||||
Painter painter(*menu_window()->backing_store());
|
||||
|
||||
Rect rect { { }, menu_window()->size() };
|
||||
painter.draw_rect(rect, Color::White);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue