matrix_declarations.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Index: SDL_Pango-0.1.2/src/SDL_Pango.c
  2. ===================================================================
  3. --- SDL_Pango-0.1.2.orig/src/SDL_Pango.c 2007-09-18 15:03:10.732910311 +0200
  4. +++ SDL_Pango-0.1.2/src/SDL_Pango.c 2007-09-18 15:04:41.970109622 +0200
  5. @@ -286,6 +286,59 @@
  6. } contextImpl;
  7. +const SDLPango_Matrix _MATRIX_WHITE_BACK
  8. + = {255, 0, 0, 0,
  9. + 255, 0, 0, 0,
  10. + 255, 0, 0, 0,
  11. + 255, 255, 0, 0,};
  12. +
  13. +/*!
  14. + Specifies white back and black letter.
  15. +*/
  16. +const SDLPango_Matrix *MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK;
  17. +
  18. +const SDLPango_Matrix _MATRIX_BLACK_BACK
  19. + = {0, 255, 0, 0,
  20. + 0, 255, 0, 0,
  21. + 0, 255, 0, 0,
  22. + 255, 255, 0, 0,};
  23. +/*!
  24. + Specifies black back and white letter.
  25. +*/
  26. +const SDLPango_Matrix *MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK;
  27. +
  28. +const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_BLACK_LETTER
  29. + = {0, 0, 0, 0,
  30. + 0, 0, 0, 0,
  31. + 0, 0, 0, 0,
  32. + 0, 255, 0, 0,};
  33. +/*!
  34. + Specifies transparent back and black letter.
  35. +*/
  36. +const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
  37. +
  38. +const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_WHITE_LETTER
  39. + = {255, 255, 0, 0,
  40. + 255, 255, 0, 0,
  41. + 255, 255, 0, 0,
  42. + 0, 255, 0, 0,};
  43. +/*!
  44. + Specifies transparent back and white letter.
  45. +*/
  46. +const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
  47. +
  48. +const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER
  49. + = {255, 255, 0, 0,
  50. + 255, 255, 0, 0,
  51. + 255, 255, 0, 0,
  52. + 0, 0, 0, 0,};
  53. +/*!
  54. + Specifies transparent back and transparent letter.
  55. + This is useful for KARAOKE like rendering.
  56. +*/
  57. +const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
  58. +
  59. +
  60. /*!
  61. Initialize the Glib and Pango API.
  62. This must be called before using other functions in this library,
  63. Index: SDL_Pango-0.1.2/src/SDL_Pango.h
  64. ===================================================================
  65. --- SDL_Pango-0.1.2.orig/src/SDL_Pango.h 2007-09-18 15:03:10.732910311 +0200
  66. +++ SDL_Pango-0.1.2/src/SDL_Pango.h 2007-09-18 15:06:24.919976401 +0200
  67. @@ -47,57 +47,27 @@
  68. Uint8 m[4][4]; /*! Matrix variables */
  69. } SDLPango_Matrix;
  70. -const SDLPango_Matrix _MATRIX_WHITE_BACK
  71. - = {255, 0, 0, 0,
  72. - 255, 0, 0, 0,
  73. - 255, 0, 0, 0,
  74. - 255, 255, 0, 0,};
  75. -
  76. /*!
  77. Specifies white back and black letter.
  78. */
  79. -const SDLPango_Matrix *MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK;
  80. -
  81. -const SDLPango_Matrix _MATRIX_BLACK_BACK
  82. - = {0, 255, 0, 0,
  83. - 0, 255, 0, 0,
  84. - 0, 255, 0, 0,
  85. - 255, 255, 0, 0,};
  86. +extern const SDLPango_Matrix *MATRIX_WHITE_BACK;
  87. /*!
  88. Specifies black back and white letter.
  89. */
  90. -const SDLPango_Matrix *MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK;
  91. -
  92. -const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_BLACK_LETTER
  93. - = {0, 0, 0, 0,
  94. - 0, 0, 0, 0,
  95. - 0, 0, 0, 0,
  96. - 0, 255, 0, 0,};
  97. +extern const SDLPango_Matrix *MATRIX_BLACK_BACK;
  98. /*!
  99. Specifies transparent back and black letter.
  100. */
  101. -const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
  102. -
  103. -const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_WHITE_LETTER
  104. - = {255, 255, 0, 0,
  105. - 255, 255, 0, 0,
  106. - 255, 255, 0, 0,
  107. - 0, 255, 0, 0,};
  108. +extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
  109. /*!
  110. Specifies transparent back and white letter.
  111. */
  112. -const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
  113. -
  114. -const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER
  115. - = {255, 255, 0, 0,
  116. - 255, 255, 0, 0,
  117. - 255, 255, 0, 0,
  118. - 0, 0, 0, 0,};
  119. +extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
  120. /*!
  121. Specifies transparent back and transparent letter.
  122. This is useful for KARAOKE like rendering.
  123. */
  124. -const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
  125. +extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
  126. /*!
  127. Specifies direction of text. See Pango reference for detail