mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #691 from chrox/new_ui_code
bugfix: check renderpg hash before hinting page
This commit is contained in:
@@ -204,7 +204,11 @@ 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)
|
||||
local hash_full_page = "renderpg|"..self.file.."|"..pageno.."|"..zoom.."|"..rotation
|
||||
local tile = Cache:check(hash_full_page)
|
||||
if not tile then
|
||||
self:renderPage(pageno, nil, zoom, rotation)
|
||||
end
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Reference in New Issue
Block a user