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.

47 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libsdl_ttf/noftinternals.patch
  5. # Copyright (C) 2007 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. Patch redone. Original taken from http://freetype.fis.uniroma2.it/freetype2/patches/SDL_ttf-2.0.7-noftinternals.patch
  17. diff -u SDL_ttf-2.0.8.orig/SDL_ttf.c SDL_ttf-2.0.8/SDL_ttf.c
  18. --- SDL_ttf-2.0.8.orig/SDL_ttf.c 2006-05-01 11:26:17.000000000 +0200
  19. +++ SDL_ttf-2.0.8/SDL_ttf.c 2007-06-23 16:49:18.000000000 +0200
  20. @@ -43,16 +43,6 @@
  21. #include FT_FREETYPE_H
  22. #include FT_OUTLINE_H
  23. #include FT_TRUETYPE_IDS_H
  24. -/*
  25. -#include <freetype/freetype.h>
  26. -#include <freetype/ftoutln.h>
  27. -#include <freetype/ttnameid.h>
  28. -*/
  29. -#include <freetype/internal/ftobjs.h>
  30. -
  31. -#ifndef FT_OPEN_STREAM
  32. -#define FT_OPEN_STREAM ft_open_stream
  33. -#endif
  34. #include "SDL.h"
  35. #include "SDL_endian.h"
  36. @@ -278,7 +268,7 @@
  37. }
  38. memset(stream, 0, sizeof(*stream));
  39. - stream->memory = library->memory;
  40. + stream->memory = NULL; /* set by FT_Open_Face */
  41. stream->read = RWread;
  42. stream->descriptor.pointer = src;
  43. stream->pos = (unsigned long)position;