equal
deleted
inserted
replaced
151 static int scroll; |
151 static int scroll; |
152 |
152 |
153 IConsoleWindow(const WindowDesc *desc) : Window(desc) |
153 IConsoleWindow(const WindowDesc *desc) : Window(desc) |
154 { |
154 { |
155 _iconsole_mode = ICONSOLE_OPENED; |
155 _iconsole_mode = ICONSOLE_OPENED; |
156 SetBit(_no_scroll, SCROLL_CON); // override cursor arrows; the gamefield will not scroll |
156 _no_scroll++; // override cursor arrows; the gamefield will not scroll |
157 |
157 |
158 this->height = _screen.height / 3; |
158 this->height = _screen.height / 3; |
159 this->width = _screen.width; |
159 this->width = _screen.width; |
160 } |
160 } |
161 |
161 |
162 ~IConsoleWindow() |
162 ~IConsoleWindow() |
163 { |
163 { |
164 _iconsole_mode = ICONSOLE_CLOSED; |
164 _iconsole_mode = ICONSOLE_CLOSED; |
165 ClrBit(_no_scroll, SCROLL_CON); |
165 _no_scroll--; |
166 } |
166 } |
167 |
167 |
168 virtual void OnPaint() |
168 virtual void OnPaint() |
169 { |
169 { |
170 int max = (this->height / ICON_LINE_HEIGHT) - 1; |
170 int max = (this->height / ICON_LINE_HEIGHT) - 1; |