From 5d17bae1208012d3f8213ac43d10481a6776c2f7 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sat, 26 Sep 2009 18:25:36 +0000 Subject: LOL/PC-98: more fixes for text displayer and character inventory svn-id: r44380 --- engines/kyra/text_lol.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/kyra/text_lol.cpp') diff --git a/engines/kyra/text_lol.cpp b/engines/kyra/text_lol.cpp index 732f97f749..384681987b 100644 --- a/engines/kyra/text_lol.cpp +++ b/engines/kyra/text_lol.cpp @@ -787,12 +787,11 @@ void TextDisplayer_LoL::textPageBreak() { void TextDisplayer_LoL::clearCurDim() { int d = _screen->curDimIndex(); - const ScreenDim *tmp = _screen->getScreenDim(_screen->curDimIndex()); + const ScreenDim *tmp = _screen->getScreenDim(d); if (_vm->gameFlags().use16ColorMode) { _screen->fillRect(tmp->sx << 3, tmp->sy, ((tmp->sx + tmp->w) << 3) - 2, (tmp->sy + tmp->h) - 2, _textDimData[d].color2); - } else { + } else _screen->fillRect(tmp->sx << 3, tmp->sy, ((tmp->sx + tmp->w) << 3) - 1, (tmp->sy + tmp->h) - 1, _textDimData[d].color2); - } _lineCount = 0; _textDimData[d].column = _textDimData[d].line = 0; -- cgit v1.2.3