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:
authorIan Thompson <quornian@googlemail.com>2008-08-31 20:23:31 +0400
committerIan Thompson <quornian@googlemail.com>2008-08-31 20:23:31 +0400
commit062bf735e7eb6ae4922127efe027ee9354dc4cf6 (patch)
treeaf83a1e63fabe2cb80df3a15ee7de4cf4b7f1c34 /source/blender/blenkernel/intern/text.c
parent3bab89cc1c51e80e15efb4f5d751940ac06001a4 (diff)
Minor tidying and commentingsoc-2008-quorn
Diffstat (limited to 'source/blender/blenkernel/intern/text.c')
-rw-r--r--source/blender/blenkernel/intern/text.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c
index 611adbd5535..12133fc4fff 100644
--- a/source/blender/blenkernel/intern/text.c
+++ b/source/blender/blenkernel/intern/text.c
@@ -2682,14 +2682,14 @@ int setcurr_tab (Text *text)
/*********************************/
static int color_match(TextMarker *a, TextMarker *b) {
- return (a->clr[0]==b->clr[0] &&
- a->clr[1]==b->clr[1] &&
- a->clr[2]==b->clr[2] &&
- a->clr[3]==b->clr[3]);
+ return (a->color[0]==b->color[0] &&
+ a->color[1]==b->color[1] &&
+ a->color[2]==b->color[2] &&
+ a->color[3]==b->color[3]);
}
/* Creates and adds a marker to the list maintaining sorted order */
-void txt_add_marker(Text *text, TextLine *line, int start, int end, char clr[4], int group, int flags) {
+void txt_add_marker(Text *text, TextLine *line, int start, int end, char color[4], int group, int flags) {
TextMarker *tmp, *marker;
marker= MEM_mallocN(sizeof(TextMarker), "text_marker");
@@ -2700,10 +2700,10 @@ void txt_add_marker(Text *text, TextLine *line, int start, int end, char clr[4],
marker->group= group;
marker->flags= flags;
- marker->clr[0]= clr[0];
- marker->clr[1]= clr[1];
- marker->clr[2]= clr[2];
- marker->clr[3]= clr[3];
+ marker->color[0]= color[0];
+ marker->color[1]= color[1];
+ marker->color[2]= color[2];
+ marker->color[3]= color[3];
for (tmp=text->markers.last; tmp; tmp=tmp->prev)
if (tmp->lineno < marker->lineno || (tmp->lineno==marker->lineno && tmp->start < marker->start))