From a74b15af79d4f26f64111191aebb8ef431d81f53 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 17 Jan 2007 01:19:09 +0000 Subject: [PATCH] (svn r8181) -Backport from trunk (r8133): - (FS#535) "out of sprite memory" warning messages (smatz) --- viewport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewport.c b/viewport.c index 8f50bdec8b..5902fef150 100644 --- a/viewport.c +++ b/viewport.c @@ -1294,7 +1294,7 @@ void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom // If we do, the sprite memory will overflow. static void ViewportDrawChk(const ViewPort *vp, int left, int top, int right, int bottom) { - if (((bottom - top) * (right - left) << vp->zoom) > 180000) { + if (((bottom - top) * (right - left) << (2 * vp->zoom)) > 180000) { if ((bottom - top) > (right - left)) { int t = (top + bottom) >> 1; ViewportDrawChk(vp, left, top, right, t);