Page MenuHome

Early line clipping in text editor
Closed, ResolvedPublic

Description

Blend file to test:

With the current behavior the last partially visible line in the text editor will not be drawn. This patch aims to fix this.

Details

Type
Patch

Event Timeline

Fabio Arnold (donfabio) set Type to Patch.
Fabio Arnold (donfabio) created this task.
Fabio Arnold (donfabio) raised the priority of this task from to Needs Triage by Developer.

Would rather not add y + (int)(st->lheight_dpi-1) inline all over, instead we could define const int clip_min_y = (int)(st->lheight_dpi - 1), then replace y < 0 with y < clip_min_y.

I updated the patch.

Julian Eisel (Severin) closed this task as Resolved.

Patch has been commited -> Resolved!

Thanks @Fabio Arnold (donfabio)!