Page MenuHome

Early line clipping in text editor
Closed, ResolvedPublicPATCH

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.

Event Timeline

Fabio Arnold (donfabio) raised the priority of this task from to 90.
Fabio Arnold (donfabio) updated the task description. (Show Details)
Fabio Arnold (donfabio) edited a custom field.

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.

Sergey Sharybin (sergey) lowered the priority of this task from 90 to Normal.Nov 18 2014, 4:16 PM

I updated the patch.

Julian Eisel (Severin) changed the task status from Unknown Status to Resolved.Dec 6 2014, 1:20 AM

Patch has been commited -> Resolved!

Thanks @Fabio Arnold (donfabio)!