UI: Remove hard-code + add comment for aa triangles

This commit is contained in:
Dalai Felinto 2018-04-22 17:01:57 +02:00
parent 43bceeedd9
commit 2d0c1f324c
1 changed files with 2 additions and 1 deletions

View File

@ -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);