diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-20 21:59:13 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-20 22:08:14 +0100 |
commit | fa02d2a39b9dc403156f2c61987f0b5c7698fc71 (patch) | |
tree | bf658ffdc3d4d5b60d5b33fc0848622ff1c9ca00 /Applications/Terminal | |
parent | e0b81ee4c9630ab343b72e4d946f620473b56b7b (diff) | |
download | serenity-fa02d2a39b9dc403156f2c61987f0b5c7698fc71.zip |
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.
Diffstat (limited to 'Applications/Terminal')
-rw-r--r-- | Applications/Terminal/Terminal.cpp | 6 | ||||
-rw-r--r-- | Applications/Terminal/Terminal.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp index e9f63cf551..52130340a1 100644 --- a/Applications/Terminal/Terminal.cpp +++ b/Applications/Terminal/Terminal.cpp @@ -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(); +} diff --git a/Applications/Terminal/Terminal.h b/Applications/Terminal/Terminal.h index a51c7b3ad9..e2b622cd20 100644 --- a/Applications/Terminal/Terminal.h +++ b/Applications/Terminal/Terminal.h @@ -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"; } |