From fa02d2a39b9dc403156f2c61987f0b5c7698fc71 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 20 Feb 2019 21:59:13 +0100 Subject: 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. --- Applications/Terminal/Terminal.cpp | 6 ++++++ Applications/Terminal/Terminal.h | 1 + 2 files changed, 7 insertions(+) (limited to 'Applications/Terminal') 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"; } -- cgit v1.2.3