From 49a78bfb3ec92b184d22f3206eb6957417b671b4 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 4 Oct 2009 15:06:50 +0000 Subject: SCI/newgui: accidentally changed Draw_Horiz and Draw_Vert, reverted svn-id: r44607 --- engines/sci/gui/gui_gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci/gui') 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); } -- cgit v1.2.3