diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-04-22 18:01:57 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-04-22 20:54:26 +0300 |
commit | 2d0c1f324c4dbe26906a5da886e20f35d19813a6 (patch) | |
tree | 4aa421277caa688a72f3bd1cfadce0a599906eb3 /source/blender/editors/interface/interface_widgets.c | |
parent | 43bceeedd9444ef450133751e32fa76c5d11ecac (diff) |
UI: Remove hard-code + add comment for aa triangles
Diffstat (limited to 'source/blender/editors/interface/interface_widgets.c')
-rw-r--r-- | source/blender/editors/interface/interface_widgets.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index ea4dc831ac2..4bfd99c66ab 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -501,7 +501,8 @@ void ui_draw_anti_tria(float x1, float y1, float x2, float y2, float x3, float y float draw_color[4]; copy_v4_v4(draw_color, color); - draw_color[3] *= 0.125f; + /* Note: This won't give back the original color. */ + draw_color[3] *= 1.0f / WIDGET_AA_JITTER; glEnable(GL_BLEND); |