[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32804] trunk/blender/source/blender/ blenfont/intern/blf_glyph.c: Fix silly column paste.

gsr b3d gsr.b3d at infernal-iceberg.com
Mon Nov 1 02:48:43 CET 2010


Revision: 32804
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32804
Author:   gsrb3d
Date:     2010-11-01 02:48:43 +0100 (Mon, 01 Nov 2010)

Log Message:
-----------
Fix silly column paste.

Modified Paths:
--------------
    trunk/blender/source/blender/blenfont/intern/blf_glyph.c

Modified: trunk/blender/source/blender/blenfont/intern/blf_glyph.c
===================================================================
--- trunk/blender/source/blender/blenfont/intern/blf_glyph.c	2010-11-01 01:46:26 UTC (rev 32803)
+++ trunk/blender/source/blender/blenfont/intern/blf_glyph.c	2010-11-01 01:48:43 UTC (rev 32804)
@@ -197,7 +197,7 @@
 	FT_BBox bbox;
 	unsigned int key;
 
-	sharp = 0; /* TODO make the value be configurable somehow */
+	sharp = 1; /* TODO make the value be configurable somehow */
 
 	g= blf_glyph_search(font->glyph_cache, c);
 	if (g)
@@ -218,10 +218,10 @@
 
 		/* 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" */
-		err += FT_Bitmap_New(&tempbitmap);
+		FT_Bitmap_New(&tempbitmap);
 		err += FT_Bitmap_Convert(global_ft_lib, &slot->bitmap, &tempbitmap, 1); /* Does Blender use Pitch 1 always? It works so far */
 		err += FT_Bitmap_Copy(global_ft_lib, &tempbitmap, &slot->bitmap);
-		err += FT_Bitmap_Done(global_ft_lib, &tempbitmap);
+		FT_Bitmap_Done(global_ft_lib, &tempbitmap);
 	} else {
 		err = FT_Render_Glyph(slot, FT_RENDER_MODE_NORMAL);
 	}





More information about the Bf-blender-cvs mailing list