Merge branch 'wip/chergert/fix-macos-fps-calculation' into 'master'

macos: fix fps calculation for frame timings

See merge request GNOME/gtk!2705
This commit is contained in:
Matthias Clasen 2020-10-17 12:20:04 +00:00
commit 5a79cc4d70

View File

@ -713,7 +713,10 @@ _gdk_macos_surface_thaw (GdkMacosSurface *self,
timings = gdk_frame_clock_get_timings (frame_clock, self->pending_frame_counter);
if (timings != NULL)
timings->presentation_time = presentation_time - refresh_interval;
{
timings->presentation_time = presentation_time - refresh_interval;
timings->complete = TRUE;
}
self->pending_frame_counter = 0;
}