[Bf-blender-cvs] [5911b6b313c] master: Fix T73695: line highlight jitters with smooth scroll

Kai Jægersen noreply at git.blender.org
Tue Feb 11 06:34:37 CET 2020


Commit: 5911b6b313c7ada6d58a634ec5ec5f07fe1652a9
Author: Kai Jægersen
Date:   Tue Feb 11 16:27:51 2020 +1100
Branches: master
https://developer.blender.org/rB5911b6b313c7ada6d58a634ec5ec5f07fe1652a9

Fix T73695: line highlight jitters with smooth scroll

===================================================================

M	source/blender/editors/space_text/text_draw.c

===================================================================

diff --git a/source/blender/editors/space_text/text_draw.c b/source/blender/editors/space_text/text_draw.c
index 96fa9f87398..02914737229 100644
--- a/source/blender/editors/space_text/text_draw.c
+++ b/source/blender/editors/space_text/text_draw.c
@@ -1338,10 +1338,16 @@ static void draw_text_decoration(SpaceText *st, ARegion *ar)
       wrap_offset_in_line(st, ar, text->sell, text->selc, &offl, &offc);
 
       y1 = ar->winy - (vsell - offl) * lheight;
+      if (st->flags & ST_SCROLL_SELECT) {
+        y1 += st->runtime.scroll_ofs_px[1];
+      }
       y2 = y1 - (lheight * visible_lines);
     }
     else {
       y1 = ar->winy - vsell * lheight;
+      if (st->flags & ST_SCROLL_SELECT) {
+        y1 += st->runtime.scroll_ofs_px[1];
+      }
       y2 = y1 - (lheight);
     }



More information about the Bf-blender-cvs mailing list