diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-30 08:58:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-30 08:58:45 +0400 |
commit | 91881dce85424860bb97d7e6ccbffc492ac98bd3 (patch) | |
tree | 66cf7f2b168ba362a7b35b675614f9c3f8e0e8f3 /source/blender/editors/space_text/text_draw.c | |
parent | 70162a4abd61df29f8ee451d94eeee6315d6155f (diff) |
- include for BGE joystick sensor
- remove print from numinput and get rid of some float/double warnings.
- nicer align line-number in text editor.
Diffstat (limited to 'source/blender/editors/space_text/text_draw.c')
-rw-r--r-- | source/blender/editors/space_text/text_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/text_draw.c b/source/blender/editors/space_text/text_draw.c index 6ba047d741a..2601d1ffdf3 100644 --- a/source/blender/editors/space_text/text_draw.c +++ b/source/blender/editors/space_text/text_draw.c @@ -1763,7 +1763,7 @@ void draw_text_main(SpaceText *st, ARegion *ar) else UI_ThemeColor(TH_TEXT); - sprintf(linenr, "%d", i + linecount + 1); + sprintf(linenr, "%*d", st->linenrs_tot, i + linecount + 1); /* itoa(i + linecount + 1, linenr, 10); */ /* not ansi-c :/ */ text_font_draw(st, TXT_OFFSET - 7, y, linenr); |