[mutter] clutter/stage-cogl: Use default frame rate instead of hardcoded 60Hz
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/stage-cogl: Use default frame rate instead of hardcoded 60Hz
- Date: Fri, 7 Jun 2019 15:39:35 +0000 (UTC)
commit a76762a05eb2f69776eecbe04e69504e0b234ba2
Author: Daniel van Vugt <daniel van vugt canonical com>
Date: Tue Apr 2 16:55:47 2019 +0800
clutter/stage-cogl: Use default frame rate instead of hardcoded 60Hz
Instead of 0Hz falling back to 60Hz, use `CLUTTER_DEFAULT_FPS` which is
also 60Hz by default.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/363
clutter/clutter/cogl/clutter-stage-cogl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index aa698ac15..1f69b3092 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -198,8 +198,8 @@ clutter_stage_cogl_schedule_update (ClutterStageWindow *stage_window,
}
refresh_rate = stage_cogl->refresh_rate;
- if (refresh_rate == 0.0)
- refresh_rate = 60.0;
+ if (refresh_rate <= 0.0)
+ refresh_rate = clutter_get_default_frame_rate ();
refresh_interval = (gint64) (0.5 + G_USEC_PER_SEC / refresh_rate);
if (refresh_interval == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]