diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2016-05-06 15:08:33 -0500 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2016-05-06 15:43:47 -0500 |
commit | 1460321b125bb3149bde9b1ad98e6eb9f49741df (patch) | |
tree | 3485f69fc5359882a68336f117259d8e6e546726 /src/lib/ecore_drm/ecore_drm_output.c | |
parent | 8bbab0d015ea47452cac77c8fbf2b5e7a1f5eab1 (diff) |
ecore_drm: Fix off by 1000 in output rate calculation
This results in wayland wl_output modes having their refresh rates
1000x too high, which has the magical effect of making some native
Qt apps fail with a GTK error when Xwayland crashes on 32-bit systems.
@fix
Fixes T3587
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c index 1de8735b0d..d5bb43cc89 100644 --- a/src/lib/ecore_drm/ecore_drm_output.c +++ b/src/lib/ecore_drm/ecore_drm_output.c | |||
@@ -277,7 +277,7 @@ _ecore_drm_output_mode_add(Ecore_Drm_Output *output, drmModeModeInfo *info) | |||
277 | mode->width = info->hdisplay; | 277 | mode->width = info->hdisplay; |
278 | mode->height = info->vdisplay; | 278 | mode->height = info->vdisplay; |
279 | 279 | ||
280 | refresh = (info->clock * 1000000LL / info->htotal + info->vtotal / 2) / info->vtotal; | 280 | refresh = (info->clock * 1000LL / info->htotal + info->vtotal / 2) / info->vtotal; |
281 | if (info->flags & DRM_MODE_FLAG_INTERLACE) | 281 | if (info->flags & DRM_MODE_FLAG_INTERLACE) |
282 | refresh *= 2; | 282 | refresh *= 2; |
283 | if (info->flags & DRM_MODE_FLAG_DBLSCAN) | 283 | if (info->flags & DRM_MODE_FLAG_DBLSCAN) |