[mutter] MetaMonitorManagerKms: stop taking drmModeModeInfo.vrefresh directly
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MetaMonitorManagerKms: stop taking drmModeModeInfo.vrefresh directly
- Date: Mon, 10 Oct 2016 20:43:23 +0000 (UTC)
commit 04b75c45f881c6f4a5dae7bd5ab8864d819377f6
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Oct 6 16:00:40 2016 +0200
MetaMonitorManagerKms: stop taking drmModeModeInfo.vrefresh directly
As in the previous commit, this value already has mode flags baked in
and we can always get the value we need by computing it ourselves.
https://bugzilla.gnome.org/show_bug.cgi?id=772176
src/backends/native/meta-monitor-manager-kms.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 6ac78b4..07671f7 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -401,9 +401,6 @@ drm_mode_vrefresh (const drmModeModeInfo *mode)
{
float refresh = 0.0;
- if (mode->vrefresh > 0.0)
- return mode->vrefresh;
-
if (mode->htotal > 0 && mode->vtotal > 0)
{
/* Calculate refresh rate in milliHz first for extra precision. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]