Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fkilla

Pages: [1]
1
Python / Patch for Image.copy
« on: February 04, 2011, 03:30:14 pm »
Hello,
here is patch for bug in Image.copy:

SFML-1.6-python-sdk.zip - SFML-1.6\python\src\Image.cpp, Line 272:

Instead of:

Code: [Select]
{"Copy", (PyCFunction)PySfImage_Copy, METH_VARARGS, "Copy(Source, DestX, DestY, SourceRect = sf.IntRect(0,0,0,0))\n\

this line should be:

Code: [Select]
{"Copy", (PyCFunction)PySfImage_Copy, METH_VARARGS | METH_KEYWORDS, "Copy(Source, DestX, DestY, SourceRect = sf.IntRect(0,0,0,0))\n\

Tested on Win XP SP3, python 2.6.6, PySFML recompiled with mingw32

Pages: [1]