Skip to content

Commit fbf1611

Browse files
authored
Merge pull request #28964 from greglucas/macos-agg-buffer
FIX macos: Use the agg buffer_rgba rather than private attribute
2 parents 22b67cd + 6bf45cd commit fbf1611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_macosx.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ -(void)drawRect:(NSRect)rect
12361236
CGContextRef cr = [[NSGraphicsContext currentContext] CGContext];
12371237

12381238
if (!(renderer = PyObject_CallMethod(canvas, "get_renderer", ""))
1239-
|| !(renderer_buffer = PyObject_GetAttrString(renderer, "_renderer"))) {
1239+
|| !(renderer_buffer = PyObject_CallMethod(renderer, "buffer_rgba", ""))) {
12401240
PyErr_Print();
12411241
goto exit;
12421242
}

0 commit comments

Comments
 (0)