OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../wxwidgets24/freetype-fix.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -Nur wxPythonSrc-2.4.2.4-orig/src/generic/dcpsg.cpp wxPythonSrc-2.4.2.4/src/generic/dcpsg.cpp
  17. --- wxPythonSrc-2.4.2.4-orig/src/generic/dcpsg.cpp 2008-08-25 14:58:19.000000000 +0200
  18. +++ wxPythonSrc-2.4.2.4/src/generic/dcpsg.cpp 2008-08-25 14:58:59.000000000 +0200
  19. @@ -1146,8 +1146,13 @@
  20. FILE *file;
  21. };
  22. +#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2
  23. +static int paps_move_to( const FT_Vector* to,
  24. + void *user_data)
  25. +#else
  26. static int paps_move_to( FT_Vector* to,
  27. void *user_data)
  28. +#endif
  29. {
  30. OutlineInfo *outline_info = (OutlineInfo*)user_data;
  31. fprintf(outline_info->file, "%d %d moveto\n",
  32. @@ -1156,8 +1161,13 @@
  33. return 0;
  34. }
  35. +#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2
  36. +static int paps_line_to( const FT_Vector* to,
  37. + void *user_data)
  38. +#else
  39. static int paps_line_to( FT_Vector* to,
  40. void *user_data)
  41. +#endif
  42. {
  43. OutlineInfo *outline_info = (OutlineInfo*)user_data;
  44. fprintf(outline_info->file, "%d %d lineto\n",
  45. @@ -1166,9 +1176,15 @@
  46. return 0;
  47. }
  48. +#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2
  49. +static int paps_conic_to( const FT_Vector* control,
  50. + const FT_Vector* to,
  51. + void *user_data)
  52. +#else
  53. static int paps_conic_to( FT_Vector* control,
  54. FT_Vector* to,
  55. void *user_data)
  56. +#endif
  57. {
  58. OutlineInfo *outline_info = (OutlineInfo*)user_data;
  59. fprintf(outline_info->file, "%d %d %d %d conicto\n",
  60. @@ -1179,10 +1195,17 @@
  61. return 0;
  62. }
  63. +#if (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 2) || FREETYPE_MAJOR >= 2
  64. +static int paps_cubic_to( const FT_Vector* control1,
  65. + const FT_Vector* control2,
  66. + const FT_Vector* to,
  67. + void *user_data)
  68. +#else
  69. static int paps_cubic_to( FT_Vector* control1,
  70. FT_Vector* control2,
  71. FT_Vector* to,
  72. void *user_data)
  73. +#endif
  74. {
  75. OutlineInfo *outline_info = (OutlineInfo*)user_data;
  76. fprintf(outline_info->file,