From 8e422b782515e3b1dbad2e003cdc42a652ac1ac9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= <aquadran@scummvm.org>
Date: Sun, 27 Oct 2002 15:16:49 +0000
Subject: [PATCH] patch: #629413 - DOTT intro fix

svn-id: r5335
---
 scumm/gfx.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index d7b1996074a..19965a6c1bd 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -898,6 +898,9 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, int h,
 		if (vs->scrollable)
 			sx -= vs->xstart >> 3;
 
+		if (sx < 0)
+			goto next_iter;
+
 		if (sx >= _numStrips)
 			return;
 
@@ -993,6 +996,8 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, int h,
 				}
 			}
 		}
+
+next_iter:
 		CHECK_HEAP;
 		x++;
 		stripnr++;