diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-09-10 21:55:22 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-09-10 21:55:22 +0800 |
commit | 380d174d20762dc69a5a79f8efc57bea3afe546f (patch) | |
tree | f9f352f2c06b5dbb51d177c018d0b499ec9dfc05 | |
parent | 3af32971da7e849ee8534a2d7d8e901b9f647a25 (diff) | |
download | marcuscom-ports-380d174d20762dc69a5a79f8efc57bea3afe546f.tar marcuscom-ports-380d174d20762dc69a5a79f8efc57bea3afe546f.tar.gz marcuscom-ports-380d174d20762dc69a5a79f8efc57bea3afe546f.tar.bz2 marcuscom-ports-380d174d20762dc69a5a79f8efc57bea3afe546f.tar.lz marcuscom-ports-380d174d20762dc69a5a79f8efc57bea3afe546f.tar.xz marcuscom-ports-380d174d20762dc69a5a79f8efc57bea3afe546f.tar.zst marcuscom-ports-380d174d20762dc69a5a79f8efc57bea3afe546f.zip |
- Fix build with new freetype2
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7276 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | www/mozilla/files/patch-gfx_src_ps_nsType1.cpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/www/mozilla/files/patch-gfx_src_ps_nsType1.cpp b/www/mozilla/files/patch-gfx_src_ps_nsType1.cpp new file mode 100644 index 000000000..29752f34a --- /dev/null +++ b/www/mozilla/files/patch-gfx_src_ps_nsType1.cpp @@ -0,0 +1,58 @@ +--- gfx/src/ps/nsType1.cpp.orig Wed Dec 11 01:24:47 2002 ++++ gfx/src/ps/nsType1.cpp Sun Sep 10 09:52:45 2006 +@@ -81,8 +81,8 @@ + int wmode; + } FT2PT1_info; + +-static int cubicto(FT_Vector *aControlPt1, FT_Vector *aControlPt2, +- FT_Vector *aEndPt, void *aClosure); ++static int cubicto(const FT_Vector *aControlPt1, const FT_Vector *aControlPt2, ++ const FT_Vector *aEndPt, void *aClosure); + static int Type1CharStringCommand(unsigned char **aBufPtrPtr, int aCmd); + static int Type1EncodeCharStringInt(unsigned char **aBufPtrPtr, int aValue); + +@@ -173,7 +173,7 @@ + } + + static PRBool +-sideWidthAndBearing(FT_Vector *aEndPt, FT2PT1_info *aFti) ++sideWidthAndBearing(const FT_Vector *aEndPt, FT2PT1_info *aFti) + { + int aw = 0; + int ah = 0; +@@ -216,7 +216,7 @@ + } + + static int +-moveto(FT_Vector *aEndPt, void *aClosure) ++moveto(const FT_Vector *aEndPt, void *aClosure) + { + FT2PT1_info *fti = (FT2PT1_info *)aClosure; + FT_UShort upm = fti->face->units_per_EM; +@@ -253,7 +253,7 @@ + } + + static int +-lineto(FT_Vector *aEndPt, void *aClosure) ++lineto(const FT_Vector *aEndPt, void *aClosure) + { + FT2PT1_info *fti = (FT2PT1_info *)aClosure; + FT_UShort upm = fti->face->units_per_EM; +@@ -279,7 +279,7 @@ + } + + static int +-conicto(FT_Vector *aControlPt, FT_Vector *aEndPt, void *aClosure) ++conicto(const FT_Vector *aControlPt, const FT_Vector *aEndPt, void *aClosure) + { + FT2PT1_info *ftinfo = (FT2PT1_info *)aClosure; + FT_UShort upm = ftinfo->face->units_per_EM; +@@ -311,7 +311,7 @@ + } + + static int +-cubicto(FT_Vector *aControlPt1, FT_Vector *aControlPt2, FT_Vector *aEndPt, ++cubicto(const FT_Vector *aControlPt1, const FT_Vector *aControlPt2, const FT_Vector *aEndPt, + void *aClosure) + { + FT2PT1_info *ftinfo = (FT2PT1_info *)aClosure; |