summaryrefslogtreecommitdiff
path: root/test/lua/screencapture.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/screencapture.lua')
-rw-r--r--test/lua/screencapture.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/lua/screencapture.lua b/test/lua/screencapture.lua
deleted file mode 100644
index 16eb94e..0000000
--- a/test/lua/screencapture.lua
+++ /dev/null
@@ -1,13 +0,0 @@
-require"imlua"
-require"cdlua"
-require"cdluaim"
-
-local canvas = cd.CreateCanvas(cd.NATIVEWINDOW, nil)
-canvas:Activate()
-local w, h = canvas:GetSize()
-local image = im.ImageCreate(w, h, im.RGB, im.BYTE)
-image:cdCanvasGetImage(canvas, 0, 0)
-error = image:Save("screencapture.jpg", "JPEG")
-image:Destroy()
-if (error) then print("error = "..error) end
-