diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-14 16:29:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-14 16:32:24 +0300 |
commit | 03b2371387dcae9f801cabbc1819b1d7e3350829 (patch) | |
tree | 0300655f20a06a8e5c807b5fe6263b47c686dedb /source/blender/blenfont/intern/blf_glyph.c | |
parent | bc4fe45aef7e52f9e7a2bd5e370c6791c58af832 (diff) |
Cleanup: move trailing comments to avoid wrapping code
Some statements were split across multiple lines because of their
trailing comments.
In most cases it's clearer to put the comments above.
Diffstat (limited to 'source/blender/blenfont/intern/blf_glyph.c')
-rw-r--r-- | source/blender/blenfont/intern/blf_glyph.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenfont/intern/blf_glyph.c b/source/blender/blenfont/intern/blf_glyph.c index 66be94aaa06..c0a53cbf282 100644 --- a/source/blender/blenfont/intern/blf_glyph.c +++ b/source/blender/blenfont/intern/blf_glyph.c @@ -329,10 +329,10 @@ GlyphBLF *blf_glyph_add(FontBLF *font, unsigned int index, unsigned int c) /* Convert result from 1 bit per pixel to 8 bit per pixel */ /* Accum errors for later, fine if not interested beyond "ok vs any error" */ FT_Bitmap_New(&tempbitmap); - err += FT_Bitmap_Convert(font->ft_lib, - &slot->bitmap, - &tempbitmap, - 1); /* Does Blender use Pitch 1 always? It works so far */ + + /* Does Blender use Pitch 1 always? It works so far */ + err += FT_Bitmap_Convert(font->ft_lib, &slot->bitmap, &tempbitmap, 1); + err += FT_Bitmap_Copy(font->ft_lib, &tempbitmap, &slot->bitmap); err += FT_Bitmap_Done(font->ft_lib, &tempbitmap); } |