aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxgoff <antipotroast@gmail.com>2012-08-04 02:35:23 -0500
committerxgoff <antipotroast@gmail.com>2012-08-04 02:35:23 -0500
commit2ab5de7a3fbc6df0f68feacf2b12908bcda930cc (patch)
treebb3e0c5237240e0a3a09a6f17f765973e30dcb88
parent0913693cde5fb74db76b2d283787ffb6a4d794ec (diff)
downloadlove2d-fakecanvas-2ab5de7a3fbc6df0f68feacf2b12908bcda930cc.tar.gz
love2d-fakecanvas-2ab5de7a3fbc6df0f68feacf2b12908bcda930cc.tar.bz2
love2d-fakecanvas-2ab5de7a3fbc6df0f68feacf2b12908bcda930cc.tar.xz
love2d-fakecanvas-2ab5de7a3fbc6df0f68feacf2b12908bcda930cc.zip
revert commit b299cfe8, was causing problems with that drawq call
-rw-r--r--fakecanvas.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/fakecanvas.lua b/fakecanvas.lua
index 863dca7..9195891 100644
--- a/fakecanvas.lua
+++ b/fakecanvas.lua
@@ -239,17 +239,17 @@ local _wrap_funcs = {
setCanvas = setCanvas,
newCanvas = Canvas,
- draw = function (obj, ...)
+ draw = function (obj, x, y, r, sx, sy, ox, oy, kx, ky)
if canvases[obj] then
- return _love_funcs.drawq(obj:_getImage(), obj:_getQuad(), ...) -- flip texcoords part 2
+ return _love_funcs.drawq(obj:_getImage(), obj:_getQuad(), x or 0, y or 0, r, sx, sy, ox, oy, kx, ky) -- flip texcoords part 2
end
- return _love_funcs.draw(obj, ...)
+ return _love_funcs.draw(obj, x, y, r, sx, sy, ox, oy, kx, ky)
end,
- drawq = function (obj, ...)
+ drawq = function (obj, x, y, r, sx, sy, ox, oy, kx, ky)
if canvases[obj] then
- return _love_funcs.drawq(obj:_getImage(), ...)
+ return _love_funcs.drawq(obj:_getImage(), x, y, r, sx, sy, ox, oy, kx, ky)
end
- return _love_funcs.drawq(obj, ...)
+ return _love_funcs.drawq(obj, x, y, r, sx, sy, ox, oy, kx, ky)
end,
pe_send = function (pe, name, data)