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:
NiLuJe
2014-11-07 21:05:56 +01:00
parent d488ca43fa
commit cd7e9c3257
2 changed files with 28 additions and 11 deletions

View File

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