Anonymous avatar Anonymous committed f3d6c8e

Removed SDL dependency from pygame2.freetype module.

Comments (0)

Files changed (2)

src/freetype/ft_mod.c

 /*
   pygame - Python Game Library
-  Copyright (C) 2000-2001 Pete Shinners
-  Copyright (C) 2008 Marcus von Appen
   Copyright (C) 2009 Vicent Marti
 
   This library is free software; you can redistribute it and/or
 */
 
 #include "ft_mod.h"
-#include "pgsdl.h"
 #include "freetypebase_doc.h"
 
 static FT_Library g_freetype_lib = NULL;
     if (!mod)
         goto fail;
 
-
     /* 
      * Insert our base Font class into the main module 
      * TODO: We need a font class hawhaw
        if (c_api_obj)
        PyModule_AddObject (mod, PYGAME_SDLTTF_ENTRY, c_api_obj);    
        */
-
-    /* Import PyGame2 modules */
-    if (import_pygame2_base() < 0)
-        goto fail;
-    if (import_pygame2_sdl_base() < 0)
-        goto fail;
-    if (import_pygame2_sdl_rwops() < 0)
-        goto fail;
-    if (import_pygame2_sdl_video() < 0)
-        goto fail;
-
-    RegisterQuitCallback(_quit);
     MODINIT_RETURN(mod);
 
 fail:

src/freetype/ft_mod.h

 /*
   pygame - Python Game Library
-  Copyright (C) 2000-2001 Pete Shinners, 2008 Marcus von Appen
+  Copyright (C) 2009 Vicent Marti
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
 #ifndef _PYGAME_FONTS_H_
 #define _PYGAME_FONTS_H_
 
-#include <Python.h>
-#include <SDL.h>
+#include "pgbase.h"
 
 #include <ft2build.h>  
 #include FT_FREETYPE_H 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.