Reinstate the comment explaining the fiddling with regions in UIManager (#4203)

This commit is contained in:
NiLuJe
2018-09-08 03:29:55 +02:00
committed by GitHub
parent 94d8f2d397
commit 2eabf1dfac
2 changed files with 4 additions and 1 deletions

2
base

Submodule base updated: d96c69131f...1772343c76

View File

@@ -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)