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 d4138d1161
This commit is contained in:
Bernardo Innocenti 2007-12-05 07:04:09 -05:00 committed by Carl Worth
parent 957056368b
commit 3551152005

View file

@ -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)