SHA256
1
0
forked from pool/cairo
cairo/cairo-1.8.6-repeat-modes.patch
OBS User autobuild 38e9b47e2a Accepting request 21874 from GNOME:Factory
Copy from GNOME:Factory/cairo based on submit request 21874 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/21874
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cairo?expand=0&rev=25
2009-10-05 21:22:40 +00:00

34 lines
1.1 KiB
Diff

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;
}