Argument type for SetPort was wrong (WindowPtr in stead of GrafPtr).
diff --git a/Mac/Modules/qd/Qdmodule.c b/Mac/Modules/qd/Qdmodule.c
index 97a2789..13caf5f 100644
--- a/Mac/Modules/qd/Qdmodule.c
+++ b/Mac/Modules/qd/Qdmodule.c
@@ -3838,9 +3838,9 @@
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 @@
{"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,