Kaydet (Commit) 29bfea9b authored tarafından Jack Jansen's avatar Jack Jansen

Argument type for SetPort was wrong (WindowPtr in stead of GrafPtr).

üst 2d7850f9
......@@ -3838,9 +3838,9 @@ static PyObject *Qd_SetPort(_self, _args)
PyObject *_args;
{
PyObject *_res = NULL;
WindowPtr thePort;
GrafPtr thePort;
if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &thePort))
GrafObj_Convert, &thePort))
return NULL;
SetPort(thePort);
Py_INCREF(Py_None);
......@@ -4783,7 +4783,7 @@ static PyMethodDef Qd_methods[] = {
{"CharExtra", (PyCFunction)Qd_CharExtra, 1,
"(Fixed extra) -> None"},
{"SetPort", (PyCFunction)Qd_SetPort, 1,
"(WindowPtr thePort) -> None"},
"(GrafPtr thePort) -> None"},
{"GetCursor", (PyCFunction)Qd_GetCursor, 1,
"(short cursorID) -> (CursHandle _rv)"},
{"SetCursor", (PyCFunction)Qd_SetCursor, 1,
......
f = Function(void, 'SetPort',
(WindowPtr, 'thePort', InMode),
(GrafPtr, 'thePort', InMode),
)
functions.append(f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment