mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
New InfoMessage Concept
Part I (still no unireader, crereader, filesearcher & fileinfo)
This commit is contained in:
@@ -38,7 +38,6 @@ Codes for rotation modes:
|
||||
0
|
||||
--]]
|
||||
|
||||
|
||||
Screen = {
|
||||
cur_rotation_mode = 0,
|
||||
-- these two variabls are used to help switching from framework to reader
|
||||
@@ -118,7 +117,8 @@ function Screen:screenshot()
|
||||
local diff = nsecs - secs + (nusecs - usecs)/1000000
|
||||
--self:fb2bmp("/dev/fb0", lfs.currentdir().."/screenshots/"..os.date("%Y%m%d%H%M%S")..".bmp", true, "bzip2 ")
|
||||
--self:fb2pgm("/dev/fb0", lfs.currentdir().."/screenshots/"..os.date("%Y%m%d%H%M%S")..".pgm", "bzip2 ", 4)
|
||||
showInfoMsgWithDelay(string.format("Screenshot is ready in %.2fs ", diff), 2000, 1)
|
||||
local msg = "Screenshot is ready in "
|
||||
InfoMessage:inform(msg..string.format("%.2fs ", diff), 2000, 1, MSG_WARN, msg..math.ceil(diff*1000).." milliseconds")
|
||||
end
|
||||
|
||||
-- NuPogodi (02.07.2012): added the functions to save the fb-content in common graphic files - bmp & pgm.
|
||||
|
||||
Reference in New Issue
Block a user