openbsd-ports/devel/sdl-ttf/patches/patch-SDL_ttf_c
ajacoutot 4ce77292dd - build fix for newer libfreetype
- bump PKGNAME

from and ok brad@
2007-01-15 17:53:44 +00:00

31 lines
821 B
Plaintext

$OpenBSD: patch-SDL_ttf_c,v 1.3 2007/01/15 17:53:44 ajacoutot Exp $
--- SDL_ttf.c.orig Mon May 1 05:26:17 2006
+++ SDL_ttf.c Sat Jan 6 19:26:23 2007
@@ -43,17 +43,7 @@
#include FT_FREETYPE_H
#include FT_OUTLINE_H
#include FT_TRUETYPE_IDS_H
-/*
-#include <freetype/freetype.h>
-#include <freetype/ftoutln.h>
-#include <freetype/ttnameid.h>
-*/
-#include <freetype/internal/ftobjs.h>
-#ifndef FT_OPEN_STREAM
-#define FT_OPEN_STREAM ft_open_stream
-#endif
-
#include "SDL.h"
#include "SDL_endian.h"
#include "SDL_ttf.h"
@@ -278,7 +268,7 @@ TTF_Font* TTF_OpenFontIndexRW( SDL_RWops
}
memset(stream, 0, sizeof(*stream));
- stream->memory = library->memory;
+ stream->memory = NULL; /* set by FT_Open_Face */
stream->read = RWread;
stream->descriptor.pointer = src;
stream->pos = (unsigned long)position;