[PATCH] xwayland: Support horizontal resolutions not divisible by 8 #99574

Svitozar Cherepii razotivs at gmail.com
Sat Jan 28 06:26:19 UTC 2017


Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99574

Signed-off-by: Svitozar Cherepii <razotivs at gmail.com>
---
 hw/xwayland/xwayland-cvt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xwayland/xwayland-cvt.c b/hw/xwayland/xwayland-cvt.c
index 9655e104e..d6ff305c7 100644
--- a/hw/xwayland/xwayland-cvt.c
+++ b/hw/xwayland/xwayland-cvt.c
@@ -101,7 +101,7 @@ xwayland_cvt(int HDisplay, int VDisplay, float VRefresh, Bool Reduced,
         VFieldRate = VRefresh;
 
     /* 2. Horizontal pixels */
-    HDisplayRnd = HDisplay - (HDisplay % CVT_H_GRANULARITY);
+    HDisplayRnd = HDisplay;
 
     /* 3. Determine left and right borders */
     if (Margins) {
-- 
2.11.0



More information about the xorg-devel mailing list