Update API for El Capitan+
Use NSAnimationContext where possible.
This commit is contained in:
committed by
Matthias Clasen
parent
fc1f0b171c
commit
68b92cc6ef
@@ -423,7 +423,14 @@ _gdk_quartz_display_before_process_all_updates (GdkDisplay *display)
|
||||
{
|
||||
in_process_all_updates = TRUE;
|
||||
|
||||
NSDisableScreenUpdates ();
|
||||
if (gdk_quartz_osx_version () >= GDK_OSX_EL_CAPITAN)
|
||||
{
|
||||
[NSAnimationContext endGrouping];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSDisableScreenUpdates ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@@ -453,7 +460,14 @@ _gdk_quartz_display_after_process_all_updates (GdkDisplay *display)
|
||||
|
||||
in_process_all_updates = FALSE;
|
||||
|
||||
NSEnableScreenUpdates ();
|
||||
if (gdk_quartz_osx_version() >= GDK_OSX_EL_CAPITAN)
|
||||
{
|
||||
[NSAnimationContext beginGrouping];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSEnableScreenUpdates ();
|
||||
}
|
||||
}
|
||||
|
||||
static const gchar *
|
||||
|
||||
Reference in New Issue
Block a user