summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-02-06 16:13:50 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-02-06 16:13:50 (GMT)
commitd6b2aeb10d9c164b2df3401374ba73102ab6d48d (patch)
tree541d74d0e2d7c0280fc1b33e4612fa8f0d1888da /Mac
parentac959779f0bca9b82a658fd079e542cb94288751 (diff)
downloadcpython-d6b2aeb10d9c164b2df3401374ba73102ab6d48d.zip
cpython-d6b2aeb10d9c164b2df3401374ba73102ab6d48d.tar.gz
cpython-d6b2aeb10d9c164b2df3401374ba73102ab6d48d.tar.bz2
QDFlushPortBuffer() has an optional region argument.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/qd/Qdmodule.c2
-rw-r--r--Mac/Modules/qd/qdscan.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/Mac/Modules/qd/Qdmodule.c b/Mac/Modules/qd/Qdmodule.c
index aece598..12f44f4 100644
--- a/Mac/Modules/qd/Qdmodule.c
+++ b/Mac/Modules/qd/Qdmodule.c
@@ -4802,7 +4802,7 @@ static PyObject *Qd_QDFlushPortBuffer(_self, _args)
RgnHandle region;
if (!PyArg_ParseTuple(_args, "O&O&",
GrafObj_Convert, &port,
- ResObj_Convert, &region))
+ OptResObj_Convert, &region))
return NULL;
QDFlushPortBuffer(port,
region);
diff --git a/Mac/Modules/qd/qdscan.py b/Mac/Modules/qd/qdscan.py
index 6336ba8..d47b46a 100644
--- a/Mac/Modules/qd/qdscan.py
+++ b/Mac/Modules/qd/qdscan.py
@@ -182,6 +182,10 @@ extend = 0x40
([('RgnHandle', 'maskRgn', 'InMode')],
[('OptRgnHandle', 'maskRgn', 'InMode')]),
+ ('QDFlushPortBuffer',
+ [('RgnHandle', '*', 'InMode')],
+ [('OptRgnHandle', '*', 'InMode')]),
+
# Accessors with reference argument also returned.
([('Rect_ptr', 'GetPortBounds', 'ReturnMode')],
[('void', '*', 'ReturnMode')]),