forked from AuroraMiddleware/gtk
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:
commit
5a79cc4d70
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user