cairo/cairo-1.8.6-repeat-modes.patch

34 lines
1.1 KiB
Diff
Raw Normal View History

Index: cairo-1.8.8/src/cairo-xlib-surface.c
===================================================================
--- cairo-1.8.8.orig/src/cairo-xlib-surface.c
+++ cairo-1.8.8/src/cairo-xlib-surface.c
@@ -1425,7 +1425,11 @@ _cairo_xlib_surface_set_attributes (cair
_cairo_xlib_surface_set_repeat (surface, RepeatNormal);
break;
case CAIRO_EXTEND_REFLECT:
+ _cairo_xlib_surface_set_repeat (surface, RepeatReflect);
+ break;
case CAIRO_EXTEND_PAD:
+ _cairo_xlib_surface_set_repeat (surface, RepeatPad);
+ break;
default:
return CAIRO_INT_STATUS_UNSUPPORTED;
}
Index: cairo-1.8.8/src/cairo-xcb-surface.c
===================================================================
--- cairo-1.8.8.orig/src/cairo-xcb-surface.c
+++ cairo-1.8.8/src/cairo-xcb-surface.c
@@ -845,7 +845,12 @@ _cairo_xcb_surface_set_attributes (cairo
_cairo_xcb_surface_set_repeat (surface, 1);
break;
case CAIRO_EXTEND_REFLECT:
+ _cairo_xcb_surface_set_repeat (surface, 3);
+ break;
case CAIRO_EXTEND_PAD:
+ _cairo_xcb_surface_set_repeat (surface, 2);
+ break;
+ default:
return CAIRO_INT_STATUS_UNSUPPORTED;
}