ref: 2cefb52fc883921c73780ab9b638dfaa4c37d08a
parent: 4a80d05e51da5b1cedb9f5d15f363d5c44509f6a
author: Werner Lemberg <[email protected]>
date: Sat Mar 26 05:27:09 EST 2005
* src/autofit/afglobal.c (af_face_globals_get_metrics): s/index/gidx/. * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Fix compiler warnings. * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c. * src/sfnt/ttsbit0.h: Dummy file for build with `make'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2005-03-26 Werner Lemberg <[email protected]>
+
+ * src/autofit/afglobal.c (af_face_globals_get_metrics):
+ s/index/gidx/.
+
+ * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Fix compiler
+ warnings.
+
+ * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
+
+ * src/sfnt/ttsbit0.h: Dummy file for build with `make'.
+
2005-03-26 Detlef W�rkner <[email protected]>
Update of the Amiga port.
--- a/src/autofit/afglobal.c
+++ b/src/autofit/afglobal.c
@@ -218,7 +218,7 @@
AF_ScriptMetrics *ametrics )
{
AF_ScriptMetrics metrics = NULL;
- FT_UInt index;
+ FT_UInt gidx;
AF_ScriptClass clazz;
FT_Error error = AF_Err_Ok;
@@ -229,8 +229,8 @@
goto Exit;
}
- index = globals->glyph_scripts[gindex];
- clazz = af_script_classes[index];
+ gidx = globals->glyph_scripts[gindex];
+ clazz = af_script_classes[gidx];
metrics = globals->metrics[clazz->script];
if ( metrics == NULL )
{
--- a/src/sfnt/rules.mk
+++ b/src/sfnt/rules.mk
@@ -28,6 +28,7 @@
SFNT_DRV_SRC := $(SFNT_DIR)/ttload.c \
$(SFNT_DIR)/ttcmap.c \
$(SFNT_DIR)/ttsbit.c \
+ $(SFNT_DIR)/ttsbit0.c \
$(SFNT_DIR)/ttpost.c \
$(SFNT_DIR)/ttkern.c \
$(SFNT_DIR)/sfobjs.c \
--- a/src/sfnt/ttsbit0.c
+++ b/src/sfnt/ttsbit0.c
@@ -772,7 +772,7 @@
FT_Byte* p_limit = decoder->eblc_limit;
FT_ULong num_ranges = decoder->strike_index_count;
FT_UInt start, end, index_format, image_format;
- FT_ULong image_start, image_end, image_offset;
+ FT_ULong image_start = 0, image_end = 0, image_offset;
if ( p + 8 * num_ranges > p_limit )
--- /dev/null
+++ b/src/sfnt/ttsbit0.h
@@ -1,0 +1,7 @@
+/*
+ * ttsbit0.h
+ *
+ * This is a dummy file, used to please the build system. It is never
+ * included by the sfnt sources.
+ *
+ */