wok-6.x diff libsdl-pango/stuff/matrix_declarations.patch @ rev 11655

Add obfsproxy (Tor proxy to help users in censored counties reach the web)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 12 00:07:26 2012 +0100 (2012-02-12)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libsdl-pango/stuff/matrix_declarations.patch	Sun Feb 12 00:07:26 2012 +0100
     1.3 @@ -0,0 +1,131 @@
     1.4 +Index: SDL_Pango-0.1.2/src/SDL_Pango.c
     1.5 +===================================================================
     1.6 +--- SDL_Pango-0.1.2.orig/src/SDL_Pango.c	2007-09-18 15:03:10.732910311 +0200
     1.7 ++++ SDL_Pango-0.1.2/src/SDL_Pango.c	2007-09-18 15:04:41.970109622 +0200
     1.8 +@@ -286,6 +286,59 @@
     1.9 + } contextImpl;
    1.10 + 
    1.11 + 
    1.12 ++const SDLPango_Matrix _MATRIX_WHITE_BACK
    1.13 ++    = {255, 0, 0, 0,
    1.14 ++       255, 0, 0, 0,
    1.15 ++       255, 0, 0, 0,
    1.16 ++       255, 255, 0, 0,};
    1.17 ++
    1.18 ++/*!
    1.19 ++    Specifies white back and black letter.
    1.20 ++*/
    1.21 ++const SDLPango_Matrix *MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK;
    1.22 ++
    1.23 ++const SDLPango_Matrix _MATRIX_BLACK_BACK
    1.24 ++    = {0, 255, 0, 0,
    1.25 ++       0, 255, 0, 0,
    1.26 ++       0, 255, 0, 0,
    1.27 ++       255, 255, 0, 0,};
    1.28 ++/*!
    1.29 ++    Specifies black back and white letter.
    1.30 ++*/
    1.31 ++const SDLPango_Matrix *MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK;
    1.32 ++
    1.33 ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_BLACK_LETTER
    1.34 ++    = {0, 0, 0, 0,
    1.35 ++       0, 0, 0, 0,
    1.36 ++       0, 0, 0, 0,
    1.37 ++       0, 255, 0, 0,};
    1.38 ++/*!
    1.39 ++    Specifies transparent back and black letter.
    1.40 ++*/
    1.41 ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
    1.42 ++
    1.43 ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_WHITE_LETTER
    1.44 ++    = {255, 255, 0, 0,
    1.45 ++       255, 255, 0, 0,
    1.46 ++       255, 255, 0, 0,
    1.47 ++       0, 255, 0, 0,};
    1.48 ++/*!
    1.49 ++    Specifies transparent back and white letter.
    1.50 ++*/
    1.51 ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
    1.52 ++
    1.53 ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER
    1.54 ++    = {255, 255, 0, 0,
    1.55 ++       255, 255, 0, 0,
    1.56 ++       255, 255, 0, 0,
    1.57 ++       0, 0, 0, 0,};
    1.58 ++/*!
    1.59 ++    Specifies transparent back and transparent letter.
    1.60 ++    This is useful for KARAOKE like rendering.
    1.61 ++*/
    1.62 ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
    1.63 ++
    1.64 ++
    1.65 + /*!
    1.66 +     Initialize the Glib and Pango API.
    1.67 +     This must be called before using other functions in this library,
    1.68 +Index: SDL_Pango-0.1.2/src/SDL_Pango.h
    1.69 +===================================================================
    1.70 +--- SDL_Pango-0.1.2.orig/src/SDL_Pango.h	2007-09-18 15:03:10.732910311 +0200
    1.71 ++++ SDL_Pango-0.1.2/src/SDL_Pango.h	2007-09-18 15:06:24.919976401 +0200
    1.72 +@@ -47,57 +47,27 @@
    1.73 +     Uint8 m[4][4];  /*! Matrix variables */
    1.74 + } SDLPango_Matrix;
    1.75 + 
    1.76 +-const SDLPango_Matrix _MATRIX_WHITE_BACK
    1.77 +-    = {255, 0, 0, 0,
    1.78 +-       255, 0, 0, 0,
    1.79 +-       255, 0, 0, 0,
    1.80 +-       255, 255, 0, 0,};
    1.81 +-
    1.82 + /*!
    1.83 +     Specifies white back and black letter.
    1.84 + */
    1.85 +-const SDLPango_Matrix *MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK;
    1.86 +-
    1.87 +-const SDLPango_Matrix _MATRIX_BLACK_BACK
    1.88 +-    = {0, 255, 0, 0,
    1.89 +-       0, 255, 0, 0,
    1.90 +-       0, 255, 0, 0,
    1.91 +-       255, 255, 0, 0,};
    1.92 ++extern const SDLPango_Matrix *MATRIX_WHITE_BACK;
    1.93 + /*!
    1.94 +     Specifies black back and white letter.
    1.95 + */
    1.96 +-const SDLPango_Matrix *MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK;
    1.97 +-
    1.98 +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_BLACK_LETTER
    1.99 +-    = {0, 0, 0, 0,
   1.100 +-       0, 0, 0, 0,
   1.101 +-       0, 0, 0, 0,
   1.102 +-       0, 255, 0, 0,};
   1.103 ++extern const SDLPango_Matrix *MATRIX_BLACK_BACK;
   1.104 + /*!
   1.105 +     Specifies transparent back and black letter.
   1.106 + */
   1.107 +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
   1.108 +-
   1.109 +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_WHITE_LETTER
   1.110 +-    = {255, 255, 0, 0,
   1.111 +-       255, 255, 0, 0,
   1.112 +-       255, 255, 0, 0,
   1.113 +-       0, 255, 0, 0,};
   1.114 ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
   1.115 + /*!
   1.116 +     Specifies transparent back and white letter.
   1.117 + */
   1.118 +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
   1.119 +-
   1.120 +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER
   1.121 +-    = {255, 255, 0, 0,
   1.122 +-       255, 255, 0, 0,
   1.123 +-       255, 255, 0, 0,
   1.124 +-       0, 0, 0, 0,};
   1.125 ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
   1.126 + /*!
   1.127 +     Specifies transparent back and transparent letter.
   1.128 +     This is useful for KARAOKE like rendering.
   1.129 + */
   1.130 +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
   1.131 ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
   1.132 + 
   1.133 + /*!
   1.134 +     Specifies direction of text. See Pango reference for detail