aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxgoff <antipotroast@gmail.com>2012-08-10 14:28:17 -0500
committerxgoff <antipotroast@gmail.com>2012-08-10 14:28:17 -0500
commitf23a9de8f2864d5010b757449619afbe620e9296 (patch)
tree8e996f9942a40ef4830d2e5c10518494b75607f4
parent2f4e5d0c7b40a8d7034dd2c97df9721661a28229 (diff)
downloadlove2d-fakecanvas-f23a9de8f2864d5010b757449619afbe620e9296.tar.gz
love2d-fakecanvas-f23a9de8f2864d5010b757449619afbe620e9296.tar.bz2
love2d-fakecanvas-f23a9de8f2864d5010b757449619afbe620e9296.tar.xz
love2d-fakecanvas-f23a9de8f2864d5010b757449619afbe620e9296.zip
unneeded comments
-rw-r--r--fakecanvas.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/fakecanvas.lua b/fakecanvas.lua
index f1d89cd..30bbe9b 100644
--- a/fakecanvas.lua
+++ b/fakecanvas.lua
@@ -51,7 +51,7 @@ local options = {
}
local blank
-function canvas:clear (...) -- other option is chucking out the imagedata and creating a new one, but i'd probably end up using mapPixel anyway
+function canvas:clear (...)
local nargs = select("#", ...)
if nargs == 0 then
@@ -140,7 +140,7 @@ local function Canvas (width, height)
getmetatable(p).__index = canvasmt.__index
- return p --setmetatable(p, canvasmt)
+ return p
end
local current_canvas
@@ -262,11 +262,6 @@ local _wrap_funcs = {
local M = { }
--- enable use of fake canvases
--- state:
--- true: use fake canvases even if real ones are supported
--- false: disable canvases entirely
--- nil: use real or fake canvases based on support
function M.enable (state)
if state == true or not canvas_supported then
love.graphics.getCanvas = _wrap_funcs.getCanvas