svn merge ^/trunk/blender -r43482:43524
[blender.git] / source / blender / editors / interface / interface_templates.c
index 730254bba79a4099c84ee7472a14b3da8cc48d93..c8361f56fee69aa91526339916c8a8b414197149 100644 (file)
@@ -2626,9 +2626,7 @@ void uiTemplateReportsBanner(uiLayout *layout, bContext *C)
        uiBlockBeginAlign(block);
        but= uiDefBut(block, ROUNDBOX, 0, "", 0, 0, UI_UNIT_X+10, UI_UNIT_Y, NULL, 0.0f, 0.0f, 0, 0, "");
        /* set the report's bg color in but->col - ROUNDBOX feature */
-       but->col[0]= FTOCHAR(rti->col[0]);
-       but->col[1]= FTOCHAR(rti->col[1]);
-       but->col[2]= FTOCHAR(rti->col[2]);
+       rgb_float_to_uchar(but->col, rti->col);
        but->col[3]= 255; 
 
        but= uiDefBut(block, ROUNDBOX, 0, "", UI_UNIT_X+10, 0, UI_UNIT_X+width, UI_UNIT_Y, NULL, 0.0f, 0.0f, 0, 0, "");