Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0061133

Browse filesBrowse files
committed
FIX: use process_event in dpi changes on macosx backend
Avoids resize_event deprecation notices.
1 parent 4a5d09c commit 0061133
Copy full SHA for 0061133

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/_macosx.m

Copy file name to clipboardExpand all lines: src/_macosx.m
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.