Closed xgroleau closed 7 months ago
If you need to use the extra bufferspace I think offset should then be 0 no? Use the scroll offset instead to "set the right viewport" initially if it needs to be bumped in certain orientations.
Perhaps I'm misunderstanding the setup and intent here.
Your are right, that would work, I wanted to avoid to let the UI know that we need an offset to the set_scroll_offset
when doing a smooth scroll, but it's probably simpler to just set it to the right viewport and provide that viewport offset info to the UI.
I'll close the issue then
We currently cannot access the total of the frame buffer due to the
window_offset
.With this configration, when we cannot draw in the first 80 bytes since if we write at Y address 0, the offset cause to write to the Y address 80.
This makes it impossible to use
set_scroll_offest
with those first 80 bytes.We could internally handle this case and trigger two draws in two writes.
I'll try to come up with a PR