use an inline function for rgb -> bw conversion.

This commit is contained in:
2012-06-22 07:49:44 +00:00
parent ec3399efa6
commit 226c86ae58
12 changed files with 26 additions and 26 deletions

View File

@@ -1438,7 +1438,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, rcti *rect
glEnd();
}
else if (cumap->cur == 3) {
float lum = cumap->sample[0] * 0.35f + cumap->sample[1] * 0.45f + cumap->sample[2] * 0.2f;
float lum = rgb_to_bw(cumap->sample);
glColor3ub(240, 240, 240);
glBegin(GL_LINES);