mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
MetaMonitorManagerKms: stop accounting for mode flags in refresh rates
This isn't technically needed and, in fact, makes us default to interlaced modes in some cases which isn't desirable. Note that X doesn't account for these flags either for its mode refresh rates. https://bugzilla.gnome.org/show_bug.cgi?id=772176
This commit is contained in:
parent
f1850e0d61
commit
a50950cf8f
@ -410,10 +410,6 @@ drm_mode_vrefresh (const drmModeModeInfo *mode)
|
||||
refresh = (mode->clock * 1000000LL) / mode->htotal;
|
||||
refresh += (mode->vtotal / 2);
|
||||
refresh /= mode->vtotal;
|
||||
if (mode->flags & DRM_MODE_FLAG_INTERLACE)
|
||||
refresh *= 2;
|
||||
if (mode->flags & DRM_MODE_FLAG_DBLSCAN)
|
||||
refresh /= 2;
|
||||
if (mode->vscan > 1)
|
||||
refresh /= mode->vscan;
|
||||
refresh /= 1000.0;
|
||||
|
Loading…
Reference in New Issue
Block a user