diff options
author | xgoff <antipotroast@gmail.com> | 2012-08-04 13:19:02 -0500 |
---|---|---|
committer | xgoff <antipotroast@gmail.com> | 2012-08-04 13:19:02 -0500 |
commit | 2f4e5d0c7b40a8d7034dd2c97df9721661a28229 (patch) | |
tree | ff600eb567d72c9d25e65e36c316810a5e96d1e6 | |
parent | 2ab5de7a3fbc6df0f68feacf2b12908bcda930cc (diff) | |
download | love2d-fakecanvas-2f4e5d0c7b40a8d7034dd2c97df9721661a28229.tar.gz love2d-fakecanvas-2f4e5d0c7b40a8d7034dd2c97df9721661a28229.tar.bz2 love2d-fakecanvas-2f4e5d0c7b40a8d7034dd2c97df9721661a28229.tar.xz love2d-fakecanvas-2f4e5d0c7b40a8d7034dd2c97df9721661a28229.zip |
copy-pasting is bad. don't do it
-rw-r--r-- | fakecanvas.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fakecanvas.lua b/fakecanvas.lua index 9195891..f1d89cd 100644 --- a/fakecanvas.lua +++ b/fakecanvas.lua @@ -245,11 +245,11 @@ local _wrap_funcs = { end return _love_funcs.draw(obj, x, y, r, sx, sy, ox, oy, kx, ky) end, - drawq = function (obj, x, y, r, sx, sy, ox, oy, kx, ky) + drawq = function (obj, q, x, y, r, sx, sy, ox, oy, kx, ky) if canvases[obj] then - return _love_funcs.drawq(obj:_getImage(), x, y, r, sx, sy, ox, oy, kx, ky) + return _love_funcs.drawq(obj:_getImage(), q or obj:_getQuad(), x, y, r, sx, sy, ox, oy, kx, ky) end - return _love_funcs.drawq(obj, x, y, r, sx, sy, ox, oy, kx, ky) + return _love_funcs.drawq(obj, q, x, y, r, sx, sy, ox, oy, kx, ky) end, pe_send = function (pe, name, data) |