mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +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
|
@ -760,3 +760,9 @@ void Terminal::force_repaint()
|
|||
m_need_full_flush = true;
|
||||
update();
|
||||
}
|
||||
|
||||
void Terminal::resize_event(GResizeEvent&)
|
||||
{
|
||||
m_needs_background_fill = true;
|
||||
force_repaint();
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ public:
|
|||
private:
|
||||
virtual void event(GEvent&) override;
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void resize_event(GResizeEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
virtual const char* class_name() const override { return "Terminal"; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue