mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Reinstate the comment explaining the fiddling with regions in UIManager (#4203)
This commit is contained in:
2
base
2
base
Submodule base updated: d96c69131f...1772343c76
@@ -792,6 +792,9 @@ function UIManager:_repaint()
|
||||
-- execute refreshes:
|
||||
for _, refresh in ipairs(self._refresh_stack) do
|
||||
dbg:v("triggering refresh", refresh)
|
||||
-- NOTE: We overshoot by 1px to account for potential off-by-ones.
|
||||
-- This may not strictly be needed anymore, and is blatantly unneeded for full-screen updates,
|
||||
-- but checkBounds & getPhysicalRect will sanitize that in mxc_update @ ffi/framebuffer_mxcfb ;).
|
||||
Screen[refresh_methods[refresh.mode]](Screen,
|
||||
refresh.region.x - 1, refresh.region.y - 1,
|
||||
refresh.region.w + 2, refresh.region.h + 2)
|
||||
|
||||
Reference in New Issue
Block a user