Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/_macosx.m
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ static CGFloat _get_device_scale(CGContextRef cr)
PyErr_SetString(PyExc_RuntimeError, "NSView* is NULL");
return NULL;
}
// We need to interrupt the runloop very briefly to allow the view to be
// displayed when used in a fast updating animation
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0]];
[view displayIfNeeded];
Py_RETURN_NONE;
}
Expand Down