X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=pkgsrc-cinelerra-cv.git;a=blobdiff_plain;f=patches%2Fpatch-title_C;fp=patches%2Fpatch-title_C;h=e8e8174e287cbf37774ef672384aa68d1c44a424;hp=0000000000000000000000000000000000000000;hb=8b050a68db48f7b9e6402a9a19c4898ef636ab83;hpb=eb36dc125c0fbb36e7b01e18a64f8b1eed4bd8b2 diff --git a/patches/patch-title_C b/patches/patch-title_C new file mode 100644 index 0000000..e8e8174 --- /dev/null +++ b/patches/patch-title_C @@ -0,0 +1,48 @@ +$NetBSD$ + +--- plugins/titler/title.C.orig 2010-01-29 09:38:03.000000000 +0000 ++++ plugins/titler/title.C +@@ -35,6 +35,8 @@ + #include FT_OUTLINE_H + #include FT_STROKER_H + ++#include "config.h" ++ + #include "language.h" + #include "mwindow.inc" + #include "picon_png.h" +@@ -48,11 +50,14 @@ + #include + #include + #include +-#include +-#include + #include + #include + ++#define bswap_32(x) ((((x) << 24) & 0xff000000) | \ ++ (((x) << 8) & 0x00ff0000) | \ ++ (((x) >> 8) & 0x0000ff00) | \ ++ (((x) >> 24) & 0x000000ff)) ++ + #define ZERO (1.0 / 64.0) + + #define FONT_SEARCHPATH "fonts" +@@ -1517,14 +1522,15 @@ void TitleMain::draw_glyphs() + + size_t inbytes,outbytes; + char inbuf; +- char *inp = (char*)&inbuf, *outp = (char *)&char_code; ++ const char *inp = &inbuf; ++ char *outp = (char *)&char_code; + + inbuf = (char)c; + inbytes = 1; + outbytes = 4; + + iconv (cd, &inp, &inbytes, &outp, &outbytes); +-#if __BYTE_ORDER == __LITTLE_ENDIAN ++#if !defined(WORDS_BIGENDIAN) + char_code = bswap_32(char_code); + #endif /* Big endian. */ +