From 6356ac19cd30dd2774de08834ec6b7afba54a3c8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 17:04:01 +0300 Subject: Improve calcImageRect in renderers. --- src/render/nullopenglgraphics.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/render/nullopenglgraphics.cpp') diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp index 3ad9b9e83..da9163294 100644 --- a/src/render/nullopenglgraphics.cpp +++ b/src/render/nullopenglgraphics.cpp @@ -874,10 +874,7 @@ bool NullOpenGLGraphics::calcWindow(ImageCollection *const vertCol, vert = vertCol->currentVert; } - return calcImageRect(vert, x, y, w, h, - imgRect.grid[0], imgRect.grid[2], imgRect.grid[6], imgRect.grid[8], - imgRect.grid[1], imgRect.grid[5], imgRect.grid[7], imgRect.grid[3], - imgRect.grid[4]); + return calcImageRect(vert, x, y, w, h, imgRect); } void NullOpenGLGraphics::updateScreen() -- cgit v1.2.3-60-g2f50