summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-16 15:13:43 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-16 15:13:43 +0300
commit901c8d6248b8b0fe35adfec881fe00fc423fd8dd (patch)
tree77a323163fbaa6b5a0c36797b274d826d3b6f909 /src/ui/documentwidget.c
parente635e4c2c58afd3a329875b3b044d0df717b20a2 (diff)
VisBuf: Only draw buffers that are within bounds
One of the four buffers will be always outside the viewport.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 9e322f65..ee3d7104 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -3871,7 +3871,7 @@ static void draw_DocumentWidget_(const iDocumentWidget *d) {
3871 render_DocumentWidget_(d, &ctx, iFalse /* just the mandatory parts */); 3871 render_DocumentWidget_(d, &ctx, iFalse /* just the mandatory parts */);
3872 setClip_Paint(&ctx.paint, bounds); 3872 setClip_Paint(&ctx.paint, bounds);
3873 const int yTop = docBounds.pos.y - value_Anim(&d->scrollY); 3873 const int yTop = docBounds.pos.y - value_Anim(&d->scrollY);
3874 draw_VisBuf(d->visBuf, init_I2(bounds.pos.x, yTop)); 3874 draw_VisBuf(d->visBuf, init_I2(bounds.pos.x, yTop), ySpan_Rect(bounds));
3875 /* Text markers. */ 3875 /* Text markers. */
3876 const iBool isTouchSelecting = (flags_Widget(w) & touchDrag_WidgetFlag) != 0; 3876 const iBool isTouchSelecting = (flags_Widget(w) & touchDrag_WidgetFlag) != 0;
3877 if (!isEmpty_Range(&d->foundMark) || !isEmpty_Range(&d->selectMark)) { 3877 if (!isEmpty_Range(&d->foundMark) || !isEmpty_Range(&d->selectMark)) {