From 833e1d11c0647c46757347bbc955259c40e9e83d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 27 Feb 2019 21:53:41 -0800 Subject: GLK: FROTZ: Move window clearing to a Window method --- engines/glk/frotz/windows.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'engines/glk/frotz/windows.h') diff --git a/engines/glk/frotz/windows.h b/engines/glk/frotz/windows.h index f24be2d636..dce980b7c8 100644 --- a/engines/glk/frotz/windows.h +++ b/engines/glk/frotz/windows.h @@ -108,10 +108,7 @@ public: /** * Assignment operator */ - Window &operator=(winid_t win) { - _win = win; - return *this; - } + Window &operator=(winid_t win); /** * Cast operator for getting a Glk window @@ -145,6 +142,11 @@ public: * Set the cursor position */ void setCursor(const Point &newPos); + + /** + * Clear the window + */ + void clear(); }; /** -- cgit v1.2.3