/* * Copyright 2009 Intel Corporation * * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without * fee, provided that the above copyright notice appear in all copies * and that both that copyright notice and this permission notice * appear in supporting documentation, and that the name of * Intel not be used in advertising or publicity pertaining to * distribution of the software without specific, written prior * permission. Intel makes no representations about the * suitability of this software for any purpose. It is provided "as * is" without express or implied warranty. * * INTEL CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS, IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY SPECIAL, * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Author: Chris Wilson */ #include "cairo-test.h" static cairo_test_status_t draw (cairo_t *cr, int width, int height) { cairo_surface_t *region; cairo_t *cr_region; cairo_set_source_rgb (cr, .5, .5, .5); cairo_paint (cr); /* fill the centre */ region = cairo_surface_create_for_rectangle (cairo_get_target (cr), 20, 20, 20, 20); cr_region = cairo_create (region); cairo_surface_destroy (region); cairo_set_source_rgb (cr_region, 1, 1, 1); cairo_rectangle (cr_region, 0, 0, 10, 10); cairo_fill (cr_region); cairo_set_source_rgb (cr_region, 1, 0, 0); cairo_rectangle (cr_region, 10, 0, 10, 10); cairo_fill (cr_region); cairo_set_source_rgb (cr_region, 0, 1, 0); cairo_rectangle (cr_region, 0, 10, 10, 10); cairo_fill (cr_region); cairo_set_source_rgb (cr_region, 0, 0, 1); cairo_rectangle (cr_region, 10, 10, 10, 10); cairo_fill (cr_region); cairo_set_source_surface (cr, cairo_get_target (cr_region), 20, 20); cairo_destroy (cr_region); /* reflect the pattern around the outside, but do not overwrite...*/ cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_PAD); cairo_rectangle (cr, 0, 0, width, height); cairo_rectangle (cr, 20, 40, 20, -20); cairo_fill (cr); return CAIRO_TEST_SUCCESS; } CAIRO_TEST (subsurface_pad, "Tests source clipping with pad", "subsurface, pad", /* keywords */ NULL, /* requirements */ 60, 60, NULL, draw) abora/libreoffice-7-5+backports'>distro/collabora/libreoffice-7-5+backports Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2021-10-05update translations for 7.2.2 rc2libreoffice-7-2-2Christian Lohmaier305-5100/+5292
2021-09-21Branch libreoffice-7-2-2Christian Lohmaier0-0/+0
2021-09-21update translations for 7.2.2 rc1Christian Lohmaier281-4071/+4383
2021-09-08update translations for 7.2.1 rc2Christian Lohmaier211-5303/+8590
2021-08-30update translations for 7-2/masterChristian Lohmaier810-25567/+26100
2021-08-14Update Slovenian translationMartin Srebotnjak28-1015/+1070
2021-08-10update translations for 7.2.0 rc3 / masterChristian Lohmaier203-5632/+5754
2021-08-04update translations for 7.2/masterChristian Lohmaier247-4642/+4657
2021-07-28update translations for 7.2.0 rc2/masterChristian Lohmaier524-13587/+15232
2021-07-09update translations for 7.2.0 rc1/masterChristian Lohmaier26-290/+312
2021-07-08update translations for 7.2 / masterChristian Lohmaier980-129591/+141880
2021-07-07Update Slovenian translationMartin Srebotnjak15-381/+168
2021-06-24update translations for 7.2 / masterChristian Lohmaier1131-28141/+32009
2021-06-19Update Slovenian translationMartin Srebotnjak24-905/+1673
2021-06-13Branch libreoffice-7-2Christian Lohmaier0-0/+0
2021-06-13update translations for 7.2.0 beta1libreoffice-7-2-branch-pointChristian Lohmaier2399-446721/+602147
2021-06-12Update Slovenian translationMartin Srebotnjak31-2817/+4497
2021-06-07Update Slovenian translationMartin Srebotnjak31-3440/+4943
2021-05-31update translations for masterChristian Lohmaier1869-198771/+327282
2021-05-14Slovenian translation fixesMartin Srebotnjak2-4/+4
2021-05-14update translations for 7.2.0 alpha1Christian Lohmaier2066-74483/+138060
2021-05-09Update Slovenian translationMartin Srebotnjak81-28150/+52732
2021-05-05update translations for masterChristian Lohmaier1739-242385/+345433
2021-04-28update translations for masterChristian Lohmaier