mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Reset refresh rate counter on explicit full refreshs (#2394)
This commit is contained in:
@@ -500,6 +500,9 @@ region: Rect() that specifies the region to be updated
|
||||
--]]
|
||||
function UIManager:_refresh(mode, region)
|
||||
if not mode then return end
|
||||
if not region and mode == "full" then
|
||||
self.refresh_count = 0 -- reset counter on explicit full refresh
|
||||
end
|
||||
-- special case: full screen partial update
|
||||
-- will get promoted every self.FULL_REFRESH_COUNT updates
|
||||
-- since _refresh can be called mutiple times via setDirty called in
|
||||
|
||||
Reference in New Issue
Block a user