derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1460321b125bb3149bde9b1ad98e6eb9f49741df

commit 1460321b125bb3149bde9b1ad98e6eb9f49741df
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Fri May 6 15:08:33 2016 -0500

    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
---
 src/lib/ecore_drm/ecore_drm_output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_drm/ecore_drm_output.c 
b/src/lib/ecore_drm/ecore_drm_output.c
index 1de8735..d5bb43c 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)
    mode->width = info->hdisplay;
    mode->height = info->vdisplay;
 
-   refresh = (info->clock * 1000000LL / info->htotal + info->vtotal / 2) / 
info->vtotal;
+   refresh = (info->clock * 1000LL / info->htotal + info->vtotal / 2) / 
info->vtotal;
    if (info->flags & DRM_MODE_FLAG_INTERLACE)
      refresh *= 2;
    if (info->flags & DRM_MODE_FLAG_DBLSCAN)

-- 


Reply via email to