diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog index 7a2f7c2fa..dcdfd727b 100644 --- a/[GSoC]ChangeLog +++ b/[GSoC]ChangeLog @@ -1,3 +1,52 @@ +2020-07-18 Anuj Verma + + [sdfb] Removed Module. + + Remove sdfb module. Instead of a new module + simply create a new renderer in the `sdf' + module for converting bitmaps to SDF. + +2020-07-18 Anuj Verma + + [sdfb] Fix GNU Make build. + + * src/sdfb/rules.mk (SDFB_DRV_H): Fix name of + the module specific error file `ftsdfberrs.h'. + + * src/sdf/ftsdf.h (Optimizations): Fix warning. + `warning: comma at end of enumerator list [-Wpedantic]' + + * src/sdf/ftsdf.c (sdf_generate_coarse_grid): Remove + unused variable `cindex', causes warning. + `warning: unused variable 'cindex' [-Wunused-variable]' + +2020-07-17 Anuj Verma + + [sdfb] Added new module to generate SDF from bitmap. + + * src/sdfb/sdfb.c, src/sdfb/ftsdfbrend.c, + src/sdfb/ftsdfb.c, src/sdfb/ftsdfbrend.h, + src/sdfb/ftsdfb.h, src/sdfb/ftsdfberrs.h: + Added files required by the `sdfb' renderer module. + + * src/sdfb/rules.mk, src/sdfb/module.mk: Added + files required to build the `sdfb' module using + the default build system. + + * CMakeLists.txt (BASE_SRCS): Add `src/sdfb/sdfb.c' + to the variable. + + * include/freetype/config/ftmodule.h: Added `sdfb' + module declaration so that the module can be compiled + when not compiling with GNU make. + + * modules.cfg (RASTER_MODULES): Include `sdfb' module + to the default rasterizer module list. + + * include/freetype/ftmoderr.h: sdfb module error define + + * src/sdf/rules.mk: Add EOF. + 2020-07-17 Anuj Verma [sdf] Added memory tracker. diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c index ae3445cb7..5651fa7b3 100644 --- a/src/sdf/ftsdf.c +++ b/src/sdf/ftsdf.c @@ -2913,7 +2913,6 @@ { for ( i = 0; i < CG_DIMEN; i++ ) { - FT_Int cindex = j * CG_DIMEN + i; SDF_Contour* cont = contours; SDF_Edge* edge; SDF_Edge* relevant_list; diff --git a/src/sdf/ftsdf.h b/src/sdf/ftsdf.h index 475393aed..d06f59a8e 100644 --- a/src/sdf/ftsdf.h +++ b/src/sdf/ftsdf.h @@ -22,7 +22,7 @@ FT_BEGIN_HEADER OPTIMIZATION_NONE = 0, /* default: check all points against all edges */ OPTIMIZATION_BB = 1, /* use bounding box to check nearby grid points */ OPTIMIZATION_SUB = 2, /* subdivide then use bounding box */ - OPTIMIZATION_CG = 3, /* use coarse grid to only check relevant edges */ + OPTIMIZATION_CG = 3 /* use coarse grid to only check relevant edges */ } Optimizations; /* --------- */ diff --git a/src/sdf/rules.mk b/src/sdf/rules.mk index efc8ac53e..214725eae 100644 --- a/src/sdf/rules.mk +++ b/src/sdf/rules.mk @@ -56,3 +56,5 @@ $(OBJ_DIR)/%.$O: $(SDF_DIR)/%.c $(FREETYPE_H) $(SDF_DRV_H) # DRV_OBJS_S += $(SDF_DRV_OBJ_S) DRV_OBJS_M += $(SDF_DRV_OBJ_M) + +# EOF