Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-20 13:45:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-20 13:45:17 +0400
commitdb13daff24073a934732053f07e97b0b5394f861 (patch)
tree603e77f5d51f44dcfb9df8061cf7d975110b4af7 /source/blender/makesrna/intern/rna_pose.c
parent9dd0c4c232fcdd2e88a2f8ba9391017a8bd55ce3 (diff)
replace SETCOL defines with inline function: rgba_char_args_set
Diffstat (limited to 'source/blender/makesrna/intern/rna_pose.c')
-rw-r--r--source/blender/makesrna/intern/rna_pose.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_pose.c b/source/blender/makesrna/intern/rna_pose.c
index 898ce7ba516..4b1090c2ae0 100644
--- a/source/blender/makesrna/intern/rna_pose.c
+++ b/source/blender/makesrna/intern/rna_pose.c
@@ -130,13 +130,9 @@ static void rna_BoneGroup_color_set_set(PointerRNA *ptr, int value)
* (for custom color set) */
if (grp->cs.solid[0] == 0) {
/* define for setting colors in theme below */
- #define SETCOL(col, r, g, b, a) col[0] = r; col[1] = g; col[2] = b; col[3] = a;
-
- SETCOL(grp->cs.solid, 0xff, 0x00, 0x00, 255);
- SETCOL(grp->cs.select, 0x81, 0xe6, 0x14, 255);
- SETCOL(grp->cs.active, 0x18, 0xb6, 0xe0, 255);
-
- #undef SETCOL
+ rgba_char_args_set(grp->cs.solid, 0xff, 0x00, 0x00, 255);
+ rgba_char_args_set(grp->cs.select, 0x81, 0xe6, 0x14, 255);
+ rgba_char_args_set(grp->cs.active, 0x18, 0xb6, 0xe0, 255);
}
}
}