Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29bfea9

Browse files
committed
Argument type for SetPort was wrong (WindowPtr in stead of GrafPtr).
1 parent 2d7850f commit 29bfea9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Mac/Modules/qd/Qdmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3838,9 +3838,9 @@ static PyObject *Qd_SetPort(_self, _args)
38383838
PyObject *_args;
38393839
{
38403840
PyObject *_res = NULL;
3841-
WindowPtr thePort;
3841+
GrafPtr thePort;
38423842
if (!PyArg_ParseTuple(_args, "O&",
3843-
WinObj_Convert, &thePort))
3843+
GrafObj_Convert, &thePort))
38443844
return NULL;
38453845
SetPort(thePort);
38463846
Py_INCREF(Py_None);
@@ -4783,7 +4783,7 @@ static PyMethodDef Qd_methods[] = {
47834783
{"CharExtra", (PyCFunction)Qd_CharExtra, 1,
47844784
"(Fixed extra) -> None"},
47854785
{"SetPort", (PyCFunction)Qd_SetPort, 1,
4786-
"(WindowPtr thePort) -> None"},
4786+
"(GrafPtr thePort) -> None"},
47874787
{"GetCursor", (PyCFunction)Qd_GetCursor, 1,
47884788
"(short cursorID) -> (CursHandle _rv)"},
47894789
{"SetCursor", (PyCFunction)Qd_SetCursor, 1,

Mac/Modules/qd/qdedit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
f = Function(void, 'SetPort',
2-
(WindowPtr, 'thePort', InMode),
2+
(GrafPtr, 'thePort', InMode),
33
)
44
functions.append(f)
55

0 commit comments

Comments
 (0)