From e4575605aa7a221d6daacc64d9b44d43c1a813c2 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 22 Apr 2025 19:02:22 +0200 Subject: [PATCH] fixed constructor --- device/textstream.cc | 10 +++++----- device/textstream.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/device/textstream.cc b/device/textstream.cc index 06e14d9..9741880 100644 --- a/device/textstream.cc +++ b/device/textstream.cc @@ -5,11 +5,11 @@ TextStream::TextStream(unsigned from_col, unsigned from_row, unsigned to_row, bool use_cursor) - : from_col_(0), - to_col_(80), - from_row_(0), - to_row_(25), - use_cursor_(0){} + : TextWindow(from_col, + to_col, + from_row, + to_row, + use_cursor){} void TextStream::flush() { diff --git a/device/textstream.h b/device/textstream.h index 83d6624..ede4774 100644 --- a/device/textstream.h +++ b/device/textstream.h @@ -41,9 +41,9 @@ class TextStream: public OutputStream, protected TextWindow { void flush(); private: - unsigned from_col_; - unsigned to_col_; - unsigned from_row_; - unsigned to_row_; - bool use_cursor_; + unsigned from_col; + unsigned to_col; + unsigned from_row; + unsigned to_row; + bool use_cursor; };