]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
QDFlushPortBuffer() has an optional region argument.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 6 Feb 2001 16:13:50 +0000 (16:13 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 6 Feb 2001 16:13:50 +0000 (16:13 +0000)
Mac/Modules/qd/Qdmodule.c
Mac/Modules/qd/qdscan.py

index aece598109b0d424d2bf261f4331813350d60b00..12f44f4111fc4b9ffd0f2336fff66bf1df5a168f 100644 (file)
@@ -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);
index 6336ba8f9883d2a259734a0a535ce34c8c287666..d47b46abe6bbc532c641c94f2ee4374a5ab83d10 100644 (file)
@@ -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')]),