mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
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
This commit is contained in:
parent
a50950cf8f
commit
04b75c45f8
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user