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

Author Topic: Patch for Image.copy  (Read 5226 times)

0 Members and 1 Guest are viewing this topic.

fkilla

  • Newbie
  • *
  • Posts: 1
    • View Profile
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

 

anything