mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
First stab at revamping the wait for marker stuff
WIP, untested, can probably simplified some more. Good news is, it should be smarter, and thus provide a smoother user experience :). Relies on the relevant changes in base.
This commit is contained in:
@@ -78,13 +78,13 @@ function Screen:setViewport(viewport)
|
||||
self.viewport.w, self.viewport.h)
|
||||
end
|
||||
|
||||
function Screen:refresh(refresh_type, waveform_mode, x, y, w, h)
|
||||
function Screen:refresh(refresh_type, waveform_mode, wait_for_marker, x, y, w, h)
|
||||
if self.viewport and x and y then
|
||||
-- adapt to viewport
|
||||
x = x + self.viewport.x
|
||||
y = y + self.viewport.y
|
||||
end
|
||||
self.fb:refresh(refresh_type, waveform_mode, x, y, w, h)
|
||||
self.fb:refresh(refresh_type, waveform_mode, wait_for_marker, x, y, w, h)
|
||||
end
|
||||
|
||||
function Screen:getSize()
|
||||
|
||||
Reference in New Issue
Block a user