diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-01 12:50:30 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-02 19:47:56 +0300 |
commit | 72c57a755e69dd6e1b6b763768ebca8b200d947b (patch) | |
tree | 3706a72f639b35b330936b04760be8112f2ea542 /source | |
parent | e1d6e524b3cc835a99dfbcf749e695fd831f9e95 (diff) |
UI: Fix: Center vertical scrollbar circles.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 5135510f5e9..886449b7eda 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -230,6 +230,7 @@ static const uint g_shape_preset_hold_action_face[2][3] = {{2, 0, 1}, {3, 5, 4}} * modified by specialized shaders to draw certain elements really fast. * TODO: find a better place. Maybe it's own file? **/ + enum { ROUNDBOX_TRIA_NONE = 0, ROUNDBOX_TRIA_ARROWS, @@ -749,11 +750,13 @@ static void shape_preset_init_trias_ex( sizex = -sizex; } else if (where == 't') { + centx = (float)rect->xmin + 0.5f * minsize; centy = (float)rect->ymax - 0.5f * minsize; sizey = -sizey; i2 = 0; i1 = 1; } else if (where == 'b') { + centx = (float)rect->xmin + 0.5f * minsize; sizex = -sizex; i2 = 0; i1 = 1; } |