2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00

Merge pull request #449 from Markismus/patch-3

Update readerscreenshot.lua (Kobo_phoenix)
This commit is contained in:
Paulo Matias 2014-01-11 07:56:37 -08:00
commit 42d39a726e

View File

@ -22,7 +22,18 @@ function ReaderScreenshot:init()
end end
function ReaderScreenshot:onScreenshot() function ReaderScreenshot:onScreenshot()
if Device:getModel() ~= 'Kobo_phoenix' then
os.execute("screenshot") os.execute("screenshot")
else Screen.bb:invert()
local screenshot_name = os.date("screenshots/Screenshot_%Y-%B-%d_%Hh%M.pam")
UIManager:show(InfoMessage:new{
text = _("Writing screen to ")..screenshot_name,
timeout = 2,
})
Screen.bb:writePAM(screenshot_name)
DEBUG(screenshot_name)
Screen.bb:invert()
end
UIManager.full_refresh = true UIManager.full_refresh = true
return true return true
end end