diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-12-26 13:34:09 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-12-26 13:34:09 +0300 |
commit | 858ae19e4ebe5d0e2788854e41a35b65e5505003 (patch) | |
tree | 884787d30eabf2ead22f84a3ef3975dddbda8ad2 /source/blender/editors/interface/view2d.c | |
parent | b89816d94f896e0a5cdb1289d8c03b32ab2dc5a1 (diff) |
Fix #25375: Vertical numbers in F-Curve Editor out-of-alignment with grid
Issue caused because previously sliders used a separate mask and now they're
drawing inside of region.
Thanks to AlexKu for point and Ton for checking :)
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index 13dca032a6c..163bd8e7d2f 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -1697,10 +1697,10 @@ void UI_view2d_scrollers_draw(const bContext *C, View2D *v2d, View2DScrollers *v * NOTE: it's assumed that that scrollbar is there if this is involved! */ fac= (grid->starty- v2d->cur.ymin) / (v2d->cur.ymax - v2d->cur.ymin); - fac= (vert.ymin + V2D_SCROLL_HEIGHT) + fac*(vert.ymax - vert.ymin - V2D_SCROLL_HEIGHT); + fac= vert.ymin + fac*(vert.ymax - vert.ymin); dfac= (grid->dy) / (v2d->cur.ymax - v2d->cur.ymin); - dfac= dfac * (vert.ymax - vert.ymin - V2D_SCROLL_HEIGHT); + dfac= dfac * (vert.ymax - vert.ymin); /* set starting value, and text color */ UI_ThemeColor(TH_TEXT); |