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

Skip to content

Commit 21493c5

Browse files
authored
Merge pull request #23925 from greglucas/macosx-resize-event
FIX: use process_event in dpi changes on macosx backend
2 parents 4a5d09c + 0061133 commit 21493c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_macosx.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,8 @@ - (void)updateDevicePixelRatio:(double)scale
13521352
}
13531353
if (PyObject_IsTrue(change)) {
13541354
// Notify that there was a resize_event that took place
1355-
gil_call_method(canvas, "resize_event");
1355+
PROCESS_EVENT("ResizeEvent", "sO", "resize_event", canvas);
1356+
gil_call_method(canvas, "draw_idle");
13561357
[self setNeedsDisplay: YES];
13571358
}
13581359

0 commit comments

Comments
 (0)