mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add render mode to hint page
This commit is contained in:
@@ -203,8 +203,8 @@ end
|
||||
|
||||
-- a hint for the cache engine to paint a full page to the cache
|
||||
-- TODO: this should trigger a background operation
|
||||
function Document:hintPage(pageno, zoom, rotation)
|
||||
self:renderPage(pageno, nil, zoom, rotation)
|
||||
function Document:hintPage(pageno, zoom, rotation, render_mode)
|
||||
self:renderPage(pageno, nil, zoom, rotation, render_mode)
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
@@ -164,7 +164,7 @@ function ReaderView:onRotationUpdate(rotation)
|
||||
end
|
||||
|
||||
function ReaderView:onHintPage()
|
||||
self.ui.document:hintPage(self.state.page+1, self.state.zoom, self.state.rotation)
|
||||
self.ui.document:hintPage(self.state.page+1, self.state.zoom, self.state.rotation, self.render_mode)
|
||||
end
|
||||
|
||||
function ReaderView:onCloseDocument()
|
||||
|
||||
Reference in New Issue
Block a user