From aee29710bd7d156373dc02356e3f5a16acb694e3 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 14 Jan 2007 21:50:56 +0000 Subject: [PATCH] (svn r8133) -Fix [FS#535]: "out of sprite memory" warning messages due to incorrect assumption of requested memory for sprites (smatz) --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewport.cpp b/src/viewport.cpp index 46d9d77c96..5d9b395e9b 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1293,7 +1293,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);