git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1017 4e206d99-4929-0410-ac5d-dfc041789085

This commit is contained in:
remi-k 2009-02-14 19:43:12 +00:00
parent ebdee32601
commit 4a3d6b171c
12 changed files with 20 additions and 11 deletions

View File

@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: PySFML
Version: 1.4
Version: 1.5
Summary: Python binding for SFML (Simple and Fast Multimedia Library)
Home-page: http://sfml.sourceforge.net/
Author: Rémi Koenig

View File

@ -4,7 +4,7 @@
from distutils.core import setup, Extension
setup(name='PySFML',
version='1.4',
version='1.5',
description='Python binding for SFML (Simple and Fast Multimedia Library)',
author='Rémi Koenig',
author_email='remi.k2620@gmail.com',

View File

@ -145,7 +145,7 @@ PyTypeObject PySfColorType = {
PySfColor *
GetNewPySfColor()
{
return PyObject_New(PySfColor, &PySfColorType);
return (PySfColor *)PySfColor_new(&PySfColorType, NULL, NULL);
}
void

View File

@ -302,4 +302,10 @@ PyTypeObject PySfDrawableType = {
PySfDrawable_new, /* tp_new */
};
PySfDrawable *
GetNewPySfDrawable()
{
return (PySfDrawable *)PySfDrawable_new(&PySfDrawableType, NULL, NULL);
}

View File

@ -50,5 +50,8 @@ typedef struct {
CustomDrawable *obj;
} PySfDrawable;
PySfDrawable *
GetNewPySfDrawable();
#endif

View File

@ -414,6 +414,6 @@ PySfImage_Copy(PySfImage* self, PyObject *args)
PySfImage *
GetNewPySfImage()
{
return PyObject_New(PySfImage, &PySfImageType);
return (PySfImage *)PySfImage_new(&PySfImageType, NULL, NULL);
}

View File

@ -162,6 +162,6 @@ PyTypeObject PySfInputType = {
PySfInput *
GetNewPySfInput()
{
return PyObject_New(PySfInput, &PySfInputType);
return (PySfInput *)PySfInput_new(&PySfInputType, NULL, NULL);
}

View File

@ -425,13 +425,13 @@ PySfFloatRectUpdateSelf(PySfFloatRect *self)
PySfIntRect *
GetNewPySfIntRect()
{
return PyObject_New(PySfIntRect, &PySfIntRectType);
return (PySfIntRect *)PySfIntRect_new(&PySfIntRectType, NULL, NULL);
}
PySfFloatRect *
GetNewPySfFloatRect()
{
return PyObject_New(PySfFloatRect, &PySfFloatRectType);
return (PySfFloatRect *)PySfFloatRect_new(&PySfFloatRectType, NULL, NULL);
}

View File

@ -391,6 +391,6 @@ PyTypeObject PySfShapeType = {
PySfShape *
GetNewPySfShape()
{
return PyObject_New(PySfShape, &PySfShapeType);
return (PySfShape *)PySfShape_new(&PySfShapeType, NULL, NULL);
}

View File

@ -213,6 +213,6 @@ PySfSoundBuffer_init(PySfSoundBuffer *self, PyObject *args, PyObject *kwds)
PySfSoundBuffer *
GetNewPySfSoundBuffer()
{
return PyObject_New(PySfSoundBuffer, &PySfSoundBufferType);
return (PySfSoundBuffer *)PySfSoundBuffer_new(&PySfSoundBufferType, NULL, NULL);
}

View File

@ -126,6 +126,6 @@ PyTypeObject PySfWindowSettingsType = {
PySfWindowSettings *
GetNewPySfWindowSettings()
{
return PyObject_New(PySfWindowSettings, &PySfWindowSettingsType);
return (PySfWindowSettings *)PySfWindowSettings_new(&PySfWindowSettingsType, NULL, NULL);
}

View File

@ -260,7 +260,7 @@ initsf(void)
Py_INCREF(&PySfListenerType);
PyModule_AddObject(m, "Listener", (PyObject *)&PySfListenerType);
PyModule_AddStringConstant(m, "Version", "1.4");
PyModule_AddStringConstant(m, "Version", "1.5");
PySfColor_InitConst();
PySfKey_InitConst();