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; };