[cairo-commit] Branch '1.4' - src/cairo-xlib-surface.c

Carl Worth cworth at kemper.freedesktop.org
Wed Dec 5 09:31:11 PST 2007


 src/cairo-xlib-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3551152005e38947cc4233e25744ec99eb4587cc
Author: Bernardo Innocenti <bernie at codewiz.org>
Date:   Wed Dec 5 07:04:09 2007 -0500

    Fix version check for buggy_repeat on modular Xserver 1.x
    
    The versioning of the X server has restarted from 1.0 in the
    modular build.  So we adjust the text to avoid considering
    the new servers buggy.
    
    Cherry picked from commit d4138d1161c6b683fd0ef62a8d49ccf4ec4674bc

diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 05d4dca..e76bc92 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -2023,7 +2023,7 @@ _cairo_xlib_surface_create_internal (Display		       *dpy,
 
     surface->buggy_repeat = FALSE;
     if (strstr (ServerVendor (dpy), "X.Org") != NULL) {
-	if (VendorRelease (dpy) <= 60802000)
+	if (VendorRelease (dpy) >= 60700000 && VendorRelease (dpy) <= 60802000)
 	    surface->buggy_repeat = TRUE;
     } else if (strstr (ServerVendor (dpy), "XFree86") != NULL) {
 	if (VendorRelease (dpy) <= 40500000)


More information about the cairo-commit mailing list