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

Skip to content

Commit d6b2aeb

Browse files
committed
QDFlushPortBuffer() has an optional region argument.
1 parent ac95977 commit d6b2aeb

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Mac/Modules/qd/Qdmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4802,7 +4802,7 @@ static PyObject *Qd_QDFlushPortBuffer(_self, _args)
48024802
RgnHandle region;
48034803
if (!PyArg_ParseTuple(_args, "O&O&",
48044804
GrafObj_Convert, &port,
4805-
ResObj_Convert, &region))
4805+
OptResObj_Convert, &region))
48064806
return NULL;
48074807
QDFlushPortBuffer(port,
48084808
region);

Mac/Modules/qd/qdscan.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ def makerepairinstructions(self):
182182
([('RgnHandle', 'maskRgn', 'InMode')],
183183
[('OptRgnHandle', 'maskRgn', 'InMode')]),
184184

185+
('QDFlushPortBuffer',
186+
[('RgnHandle', '*', 'InMode')],
187+
[('OptRgnHandle', '*', 'InMode')]),
188+
185189
# Accessors with reference argument also returned.
186190
([('Rect_ptr', 'GetPortBounds', 'ReturnMode')],
187191
[('void', '*', 'ReturnMode')]),

0 commit comments

Comments
 (0)