Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_widgets.c
| Context not available. | |||||
| int j; | int j; | ||||
| glEnable(GL_BLEND); | glEnable(GL_BLEND); | ||||
| glGetFloatv(GL_CURRENT_COLOR, color); | glGetFloatv(GL_CURRENT_COLOR, color); // I will make the change in a futur patch, use as it is for now | ||||
| if (use_alpha) { | if (use_alpha) { | ||||
| color[3] = 0.5f; | color[3] = 0.5f; | ||||
| } | } | ||||
| color[3] *= 0.125f; | color[3] *= 0.125f; | ||||
| glColor4fv(color); | |||||
| const unsigned char coloruc[4] = {color[0]*255, color[1]*255, color[2]*255, color[3]*255}; | |||||
| for (j = 0; j < WIDGET_AA_JITTER; j++) { | for (j = 0; j < WIDGET_AA_JITTER; j++) { | ||||
| glTranslate2fv(jit[j]); | glTranslate2fv(jit[j]); | ||||
| UI_draw_roundbox_gl_mode(mode, minx, miny, maxx, maxy, rad); | UI_draw_roundbox_gl_mode(mode, minx, miny, maxx, maxy, rad, coloruc); | ||||
| glTranslatef(-jit[j][0], -jit[j][1], 0.0f); | glTranslatef(-jit[j][0], -jit[j][1], 0.0f); | ||||
| } | } | ||||
| Context not available. | |||||