Blender Git Commit Log

Git Commits -> Revision 030e5bd

Revision 030e5bd by Campbell Barton (master)
July 13, 2009, 11:41 (GMT)
Drawing a string longer then 255 chars wasnt working.

changes to flatten_string_append(...), probably only brecht is interested.
- It was copying from the old malloc'd buffer but never the fixed buffer - the reason >255 length strings didnt render.
- on first malloc for the FlatString allocate 512 rather then 256 chars since the fixed string is 256 chars.
- if the char was ' ' fs->pos was set to 0, not sure why since char cant be ' ' because of the loop that calls flatten_string_append, removed.

Commit Details:

Full Hash: 030e5bd93ee0aaea3e43b89fb87191d7ec45c3be
SVN Revision: 21558
Parent Commit: b5eff58
Lines Changed: +11, -15

1 Modified Path:

/source/blender/editors/space_text/text_draw.c (+11, -15) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021