SFML community forums

Bindings - other languages => Python => Topic started by: fkilla on February 04, 2011, 03:30:14 pm

Title: Patch for Image.copy
Post by: fkilla 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