add DHINTCOUNT in defaults.lua

It controls how many number of pages will be hinted in background
after one page has been drawn. Default DHINTCOUNT is 2.
This commit is contained in:
chrox
2013-09-14 15:27:11 +08:00
parent f2cf10a015
commit 979d4c5d48
5 changed files with 23 additions and 16 deletions

View File

@@ -161,19 +161,6 @@ function ReaderZooming:onReZoom()
return true
end
function ReaderZooming:onHintPage()
if not self.view.hinting then return true end
if self.current_page < self.ui.document.info.number_of_pages then
self.ui.document:hintPage(
self.view.state.page + 1,
self:getZoom(self.view.state.page + 1),
self.view.state.rotation,
self.view.state.gamma,
self.view.render_mode)
end
return true
end
function ReaderZooming:getZoom(pageno)
-- check if we're in bbox mode and work on bbox if that's the case
local zoom = nil