summaryrefslogtreecommitdiff
path: root/src/ui/visbuf.c
AgeCommit message (Collapse)Author
2021-08-10DocumentWidget: Fixed drawing of empty documentJaakko Keränen
An empty document would could the widget to be drawn as a black non-themed rectangle, with a single-pixel horizontal line in the middle. This fixes that by just clearing the widget to the UI background color. The most notable situation where this occurred was immediately after activating split view mode.
2021-04-20DocumentWidget: Pre-rendering finetuningJaakko Keränen
Ensure there is more buffered content available in the current scrolling direction, and also make sure that all buffers get pre-rendered after a short delay with the view being stationary.
2021-04-16VisBuf: Only draw buffers that are within boundsJaakko Keränen
One of the four buffers will be always outside the viewport.
2021-04-15Progressive document renderingJaakko Keränen
VisBuf now guarantees that all the buffers are sequentially ordered. This ensure complete utilization of all the buffers. Previously some buffers were not used at all, or allocated to the same origin as another one (!). DocumentWidget is able to progressively fill up a buffer while scrolling. After any change to the visible region has been detected (and there are no ongoing changes), prerender the remaining runs one at a time. This solves the issue where one text run would be always unnecessarily rendered while scrolling, even if the scroll distance was just one pixel.
2021-03-29VisBuf: Increase buffer size for scrolling; fixed glitchesJaakko Keränen
Instead of 1.5x coverage, the buffer now has a full 2x.
2021-03-20VisBuf: Debug utilityJaakko Keränen
2020-09-15VisBuf: Invalidating the bufferJaakko Keränen
The state of the VisBuf should be fully cleared when invalidating. IssueID #1
2020-09-12VisBuf: Method for marking textures as validJaakko Keränen
2020-09-12CopyrightJaakko Keränen
2020-09-12Separated VisBuf from ListWidgetJaakko Keränen
This will be used in DocumentWidget as well.