aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-04 15:06:50 +0000
committerMartin Kiewitz2009-10-04 15:06:50 +0000
commit49a78bfb3ec92b184d22f3206eb6957417b671b4 (patch)
tree752672a712f0cb213f712b638053fb46604e5215 /engines/sci/gui
parent4957ec3505d9b763bfe90bbaf840bbafdaa72143 (diff)
downloadscummvm-rg350-49a78bfb3ec92b184d22f3206eb6957417b671b4.tar.gz
scummvm-rg350-49a78bfb3ec92b184d22f3206eb6957417b671b4.tar.bz2
scummvm-rg350-49a78bfb3ec92b184d22f3206eb6957417b671b4.zip
SCI/newgui: accidentally changed Draw_Horiz and Draw_Vert, reverted
svn-id: r44607
Diffstat (limited to 'engines/sci/gui')
-rw-r--r--engines/sci/gui/gui_gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp
index 4001ea06c5..b417eb4fe8 100644
--- a/engines/sci/gui/gui_gfx.cpp
+++ b/engines/sci/gui/gui_gfx.cpp
@@ -916,7 +916,7 @@ void SciGUIgfx::Draw_Line(int16 left, int16 top, int16 right, int16 bottom, byte
void SciGUIgfx::Draw_Horiz(int16 left, int16 right, int16 top, byte flag, byte color, byte prio, byte control) {
if (right < left)
SWAP(right, left);
- for (int i = left; i < right; i++)
+ for (int i = left; i <= right; i++)
_screen->Put_Pixel(i, top, flag, color, prio, control);
}
@@ -924,7 +924,7 @@ void SciGUIgfx::Draw_Horiz(int16 left, int16 right, int16 top, byte flag, byte c
void SciGUIgfx::Draw_Vert(int16 top, int16 bottom, int16 left, byte flag, byte color, byte prio, byte control) {
if (top > bottom)
SWAP(top, bottom);
- for (int i = top; i < bottom; i++)
+ for (int i = top; i <= bottom; i++)
_screen->Put_Pixel(left, i, flag, color, prio, control);
}