summaryrefslogtreecommitdiff
path: root/src/render/nullopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 17:04:01 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 17:04:01 +0300
commit6356ac19cd30dd2774de08834ec6b7afba54a3c8 (patch)
treeec8667e401f603c88a2f64357433336e867a6a0f /src/render/nullopenglgraphics.cpp
parentf98e1eb985bd5d694cd8fce323e5f4c3767dfe71 (diff)
downloadplus-6356ac19cd30dd2774de08834ec6b7afba54a3c8.tar.gz
plus-6356ac19cd30dd2774de08834ec6b7afba54a3c8.tar.bz2
plus-6356ac19cd30dd2774de08834ec6b7afba54a3c8.tar.xz
plus-6356ac19cd30dd2774de08834ec6b7afba54a3c8.zip
Improve calcImageRect in renderers.
Diffstat (limited to 'src/render/nullopenglgraphics.cpp')
-rw-r--r--src/render/nullopenglgraphics.cpp5
1 files changed, 1 insertions, 4 deletions
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()