Commit graph

1096 commits

Author SHA1 Message Date
Keith Packard
935764d91c Switch fallback from list of rects to region. Check operator and patterns for non-ps drawing ability. Operators can sometimes be always opaque, independent of the pattern, sometimes always translucent, independent of the pattern and sometimes depend on whether is translucent.
reviewed by: cworth
2005-10-09 20:40:12 +00:00
Keith Packard
a0e970fad2 Add const to _cairo_surface_is_image parameter 2005-10-09 20:31:44 +00:00
Billy Biggs
b207dfe822 Add a new test to start investigating bug 4183.
The new test.
Ignore the new test.
2005-10-09 14:51:55 +00:00
Keith Packard
eeb56e713b The comment said 'blend over white', the code did 'blend under garbage'. I made the code look like the comment. More tests pass now. mmm.
reviewed by: cworth
2005-10-09 14:28:15 +00:00
Carl Worth
951c7a6592 Make surface image data static to work around a bug in cairo-meta-surface.c (not copying source surface pattern data). 2005-10-09 13:33:21 +00:00
Billy Biggs
ea7ac21d3b Add a "nearest" extend mode, where the closest pixel is repeated for pixels outside of the source area. Note that for gradients, applications which had explicitly set a repeat mode of NONE will now need to change to use NEAREST to get the same behaviour.
Split CARIO_EXTEND_DEFAULT to indicate defaults for surfaces and gradients. The default for gradients is still the NEAREST beaviour.
Support the NEAREST mode, change NONE to be TRANSPARENT.
Update the extend mode code to use the pixman support.
Handle NEAREST, note that support for NONE is not yet handled for gradients.
Add a check for NEAREST but don't do anything useful.
Add a check for NEAREST but don't do anything useful.
Update a comment about the extend support in the image backend.
reviewed by: davidr, cworth, otaylor
2005-10-09 09:18:16 +00:00
Carl Worth
a8dbfc42a7 Remove 1.0.2 entries now that it is out. Note that the PS backend has now been added to the test suite. 2005-10-08 22:44:56 +00:00
Carl Worth
e26dbd9500 Add ps-backend-specific reference images for test for which the current output is fine, but just happens to not be identical to the existing reference images, (ie. just minor differences shape-boundary pixels). 2005-10-08 13:04:18 +00:00
Carl Worth
94dece56a5 Ignore output of PS tests.
Fix the PS tests to work again, (track change in create_surface interface).
2005-10-08 11:58:20 +00:00
Carl Worth
24dce0dbb3 Enable PS and PDF backends by default, (in preparation for 1.2.0) 2005-10-08 11:57:45 +00:00
Carl Worth
4d84a70b9f Fix typo leading to truncated error message (Christian Biesinger <cbiesinger@web.de>). 2005-10-08 10:50:08 +00:00
Kristian Høgsberg
27e12fc1db Apply patch from #4672 by Jens Taprogge to implement color stop sorting and multiple color stops for gradients. 2005-10-07 13:21:01 +00:00
Carl Worth
e6239b1d93 Add ChangeLog information for code that was accidentally committed along with an earlier bug fix:
Add missing initialization for ximage.xoffset.
Ignore the -argb32-out.png and -rgb24-out.png images as well.
Pass a format to the surface create functions. (create_image_surface): Condense create_argb_image_surface and create_rgb_image_surface into a single function. (create_xlib_surface): Add support for CAIRO_FORMAT_RGB24 in addition to CAIRO_FORMAT_ARGB32. Add a new target for testing xlib with CAIRO_FORMAT_RGB24.
2005-10-06 12:50:08 +00:00
Carl Worth
74af57339c Add missing initialization for ximage.xoffset. 2005-10-06 11:32:54 +00:00
Anders Carlsson
de3358f883 Invoke PKG_PROG_PKG_CONFIG so $PKG_CONFIG will be set early on. 2005-10-04 13:48:25 +00:00
Carl Worth
1810eaf8f2 Add notes for the 1.0.2 release. 2005-10-03 17:49:25 +00:00
Anders Carlsson
cdaa48655c Bring the ATSUI backend up to date wrt the new font backend changes. Also, add cairo_atsui_font_face_create_for_atsu_font_id which takes an ATSUFontID and returns a cairo_font_face_t. 2005-09-30 08:31:36 +00:00
Bertram Felgenhauer
a028678179 simplify id initialisation of last patch
reviewed by: keithp
2005-09-29 20:00:14 +00:00
Bertram Felgenhauer
04170ed285 ChangeLog cosmetics. 2005-09-29 17:34:31 +00:00
Bertram Felgenhauer
fa2d0ab5b7 Using a pointer comparison as the fallback total order was wrong - these pointers are not stable. So we introduce our own total order instead.
mark 4599 as fixed
reviewed by: cworth
2005-09-29 17:26:20 +00:00
Keith Packard
d3e7dad53e Add rgb24 surface tests, support per-target reference images and support PS surface testing
reviewed by: cworth
2005-09-29 14:31:08 +00:00
Carl Worth
76634781e2 Oops. Reverting debug output that was mistakenly committed. 2005-09-29 10:09:59 +00:00
Carl Worth
4ef5f08563 Add date of 2005-10-03 for 1.0.2. Add 4630 to the 1.0.2 roadmap. 2005-09-29 06:49:47 +00:00
Tor Lillqvist
303e3e9748 Use _cairo_utf8_to_utf16 for character conversion. 2005-09-28 10:35:55 +00:00
Tor Lillqvist
dc711cd88d Note that Bug #4612 (Text not being drawn if first character entirely out of surface) is now fixed.
Add cast so that sign conversion doesn't alter comparison.
2005-09-28 10:25:23 +00:00
Carl Worth
f41377bc0c Add 4612 to the 1.0.2 roadmap. 2005-09-27 15:07:15 +00:00
Tor Lillqvist
58113099f9 Note that Bug #4602 (use of 0x0 images causes win32 backend failure) is now fixed.
Avoid creating size-0 bitmap, which fails.
2005-09-27 13:22:46 +00:00
Carl Worth
abaf346810 Note that bug #4409 (Dashes are missing initial caps) is now fixed.
Move face-flipping from inside _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap variant of _cairo_stoker_add_cap.
Change to call _cairo_stroker_add_leading_cap or _cairo_stroker_add_trailing_cap as appropriate.
Remove dash-caps-joins from the XFAIL list and add reference image.
2005-09-27 12:44:32 +00:00
Carl Worth
8a6792fe41 Add two test cases. One for caps and joins (passes), and one for dashed caps and joins, (fails, see bug #4409). 2005-09-27 11:35:18 +00:00
Carl Worth
38d526f8be Added bug 4599 and 4602 to the 1.0.2 roadmap. 2005-09-26 17:21:47 +00:00
Tor Lillqvist
1010e9052f Set LOGFONT::lfHeight negative. A negative lfHeight means "em height" which is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) (#4593) (_cairo_win32_scaled_font_init_glyph_metrics): If GetGlyphOutlineW() fails, print error message and set metrics to zero. (#3927, Hans Breuer) (cairo_win32_scaled_font_select_font): Add detail on what API failed to the error messages. 2005-09-26 07:48:10 +00:00
Carl Worth
8649fc9f18 Note that the clip-all test now passes. 2005-09-19 17:30:27 +00:00
Carl Worth
8fc9e099fd Avoid attempting to create a size-0 Pixmap, (to prevent the associated X error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report.
Remove clip-all from the XFAIL list since it works now.
2005-09-19 17:24:52 +00:00
Carl Worth
fa5d17f466 Originally: 2005-09-19 Hans Breuer <hans@breuer.org>
src/cairoint.h : win32 specific definitions for CAIRO_MUTEX_DECLARE, CAIRO_MUTEX_LOCK etc. [not based on win32 mutex but critical sections]
src/cairo-win32-surface.c : add DllMain() to do global, single-threaded 'mutex' (de)initialization. No ifdefs needed, some variables would simply not be used when the respective backend would not be compiled in.
2005-09-19 14:24:00 +00:00
Carl Worth
d7bdc94775 Add cairo-cache-private.h which was missing from the list, (thanks to sunmoon1997). 2005-09-19 14:14:03 +00:00
Carl Worth
80561375c4 Note that 4414 is now fixed. 2005-09-19 11:56:27 +00:00
Billy Biggs
079ee492b5 Fix the MMX test to only check for MMX intrinsics and not the SSE intrinsics. 2005-09-18 19:53:23 +00:00
Billy Biggs
0978f97e9e Bug #4414, reviewed by otaylor, cworth.
Remove -msse from the MMX CFLAGS as it causes gcc to emit SSE instructions, however the detection code only checks for processors supporting MMX and does not require SSE.
2005-09-18 19:37:44 +00:00
Carl Worth
6d14b3c1fc Prefer cairo_bool_t, TRUE, and FALSE over int, 1, and 0. 2005-09-16 10:49:48 +00:00
Carl Worth
9cb31827aa Mark 4408 as resolved. 2005-09-16 10:27:32 +00:00
Carl Worth
5b9be26d26 Tested by: John Ellson Closes bug #4408 https://bugs.freedesktop.org/show_bug.cgi?id=4408
Add support for dashed splines. (The antialiasing quality isn't perfect, but at least the curves are dashed now).
2005-09-16 10:24:54 +00:00
Carl Worth
a7459e0057 Mark 4260 as resolved. Add 4414 to the 1.0.2 roadmap. 2005-09-16 10:11:52 +00:00
David Reveman
34c6f5de9b Change Carl's comment about saturate operator 2005-09-14 09:25:07 +00:00
David Reveman
82cb5baeb2 Track changes to glitz and update glyph caching in glitz backend 2005-09-14 09:07:00 +00:00
Carl Worth
c9ad68e6e9 Set return-value *glyphs to NULL after freeing it in the error case. 2005-09-13 15:53:19 +00:00
Carl Worth
b18a3c0580 Mark bug #4299 fixed (by the several lock-related commits below). Add clip-all XFAIL to the 1.0.2 roadmap. 2005-09-13 15:47:59 +00:00
Carl Worth
56e7e9d5bd Add missing locking around the call into the thread-shared cache here. 2005-09-13 12:40:36 +00:00
Carl Worth
e8708af118 Adjust parameters to stress things a bit more, (better exposing another locking bug). 2005-09-13 12:37:45 +00:00
Carl Worth
ef35d00615 Expand locking to encapsulate any modification to the reference count of a scaled font, rather than just modifcations of the scaled_font_map, since scaled fonts are shared between threads. 2005-09-13 12:26:29 +00:00
Carl Worth
258f6f4903 Add documentation for cairo_test functions.
Abstract log fie creation into cairo_test_init for use by tests that don't use cairo_test().
Add new test for bug #4299 as reported by Alexey Shabalin.
2005-09-13 12:11:32 +00:00