fix performance issue of screensaver on Kobo

now loadDocument will not render the document and getCoverPageImage will
be much faster.
This commit is contained in:
chrox
2014-08-28 13:22:31 +08:00
parent 288a49252e
commit fd9e3d57f3
3 changed files with 13 additions and 7 deletions

View File

@@ -220,9 +220,9 @@ function ReaderUI:init()
document = self.document,
})
else
-- make sure we load document first before calling any callback
-- make sure we render document first before calling any callback
table.insert(self.postInitCallback, function()
self.document:loadDocument()
self.document:render()
end)
-- typeset controller
table.insert(self, ReaderTypeset:new{