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>2009-07-12 11:37:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-07-12 11:37:25 +0400
commitba1082444efae1085bd01f240958bc9fceb826a5 (patch)
tree5f7b24edea0ded09a341e51ee7458f48422bb158 /source/blender/editors/space_text/text_intern.h
parent345be5cbbc8c78228b2ded7c2dcb7278c38631b1 (diff)
made text editor margin work with different font sizes.
also made it draw the width needed, was fixed at 4.
Diffstat (limited to 'source/blender/editors/space_text/text_intern.h')
-rw-r--r--source/blender/editors/space_text/text_intern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/text_intern.h b/source/blender/editors/space_text/text_intern.h
index 5ea33e1660d..cb425274fc0 100644
--- a/source/blender/editors/space_text/text_intern.h
+++ b/source/blender/editors/space_text/text_intern.h
@@ -58,7 +58,7 @@ void text_update_edited(struct Text *text);
void text_update_character_width(struct SpaceText *st);
void text_update_cursor_moved(struct SpaceText *st, struct ARegion *ar);
-#define TEXTXLOC 38
+#define TEXTXLOC (st->cwidth * st->linenrs_tot)
#define SUGG_LIST_SIZE 7
#define SUGG_LIST_WIDTH 20