From 2ab5de7a3fbc6df0f68feacf2b12908bcda930cc Mon Sep 17 00:00:00 2001 From: xgoff Date: Sat, 4 Aug 2012 02:35:23 -0500 Subject: revert commit b299cfe8, was causing problems with that drawq call --- fakecanvas.lua | 12 ++++++------ 1 file 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) -- cgit v1.2.3-70-g09d2