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>2011-11-07 05:38:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-07 05:38:32 +0400
commit96d73bfdcfd74bfccd58bf02ae25b64577fce904 (patch)
tree76f1423cdb1fe3079bd6b17c071c3c4a496c6550 /source/blender/editors/space_info
parent85540d5aa7abb487e546b5483fffeef2e6075af5 (diff)
replace VECCOPY with copy_v3_v3, same for 2d copy, also added vec copy functions for int & char.
Diffstat (limited to 'source/blender/editors/space_info')
-rw-r--r--source/blender/editors/space_info/textview.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c
index 70c4ebd445a..177b72567e5 100644
--- a/source/blender/editors/space_info/textview.c
+++ b/source/blender/editors/space_info/textview.c
@@ -33,6 +33,7 @@
#include "BLF_api.h"
+#include "BLI_math.h"
#include "BLI_utildefines.h"
@@ -131,7 +132,7 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str
const char *line_stride= str + initial_offset; /* advance to the last line and draw it first */
int sel_orig[2];
- VECCOPY2D(sel_orig, cdc->sel);
+ copy_v2_v2_int(sel_orig, cdc->sel);
/* invert and swap for wrapping */
cdc->sel[0] = str_len - sel_orig[1];
@@ -178,7 +179,7 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str
return 0;
}
- VECCOPY2D(cdc->sel, sel_orig);
+ copy_v2_v2_int(cdc->sel, sel_orig);
STEP_SEL(-(str_len + 1));
}
else { /* simple, no wrap */