added Screen:screenshot()

This commit is contained in:
Dobrica Pavlinusic
2012-05-19 23:04:40 +02:00
parent 86513c3793
commit a08c35a52c
7 changed files with 15 additions and 27 deletions

View File

@@ -366,10 +366,7 @@ function CREReader:adjustCreReaderCommands()
self.commands:add(KEY_P, MOD_SHIFT, "P",
"make screenshot",
function(cr)
os.execute("mkdir ".."/mnt/us/kindlepdfviewer/screenshots")
local d = os.date("%Y%m%d%H%M%S")
showInfoMsgWithDelay("making screenshot... ", 1000, 1)
os.execute("dd ".."if=/dev/fb0 ".."of=/mnt/us/kindlepdfviewer/screenshots/" .. d .. ".raw")
Screen:screenshot()
end
)