Commit graph

662 commits

Author SHA1 Message Date
Owen Taylor
5fecf69e2c src/cairo-xlib.h src/cairo_xlib_surface.c: Rework set of contructors for XLib surfaces. Add cairo_xlib_surface_set_size().
src/cairo-xlib.h src/cairo_xlib_surface.c: Add cairo_xlib_surface_set_device_offset().
Rewrite for clarity and efficiency.
Use a temporary pixmap to avoid possible BadMatch when fetch from windows.
src/cairo.[ch] src/cairo-xlib.h: Fix some parameter names for the docs.
Update
2005-03-15 16:25:30 +00:00
Carl Worth
30e771d811 Add reference image. 2005-03-14 11:49:12 +00:00
Carl Worth
f385e5f3e4 Fixes to force tests to run against locally compiled version (thanks to Manish Singh). 2005-03-14 11:14:13 +00:00
Carl Worth
a98430092f Added some documentation, so we get some churn here.
New functions: cairo_copy_path_data, cairo_copy_path_data_flat, and cairo_append_path_data.
Add new implementation for cairo_copy_path_data and cairo_append_path_data.
New test for new path_data functions.
2005-03-11 14:29:15 +00:00
Owen Taylor
db616356c1 Set format->depth correctly instead of just using the bpp. 2005-03-11 12:09:00 +00:00
Kristian Høgsberg
1f5394ffe9 *** empty log message *** 2005-03-10 09:28:50 +00:00
Kristian Høgsberg
b032d02322 Fix assert()'s using = instead of ==.
Move xunlink call below the xasprintf that builds the filename to unlink.
2005-03-10 09:22:20 +00:00
Carl Worth
05a7c69c90 API Shakeup status update. 2005-03-10 09:02:41 +00:00
Carl Worth
c67ba13a6e Originally: 2005-02-24 Carl Worth <cworth@cworth.org>
Add const qualifier to cairo_user_data_key_t arguments.
Originally: 2005-02-15 Kristian Høgsberg <krh@redhat.com>
Add these two functions to set and get user data on an surface.
Function prototypes for new functions.
Test case for user data functions.
2005-03-10 08:59:11 +00:00
Carl Worth
12abad4759 Move filename initialization up to before first use.
Add test for the most trivial cairo_get and cairo_set functions.
2005-03-09 17:43:59 +00:00
Carl Worth
0daf6b1745 Move filename initialization up to before first use.
Add test for the most trivial cairo_get and cairo_set functions.
2005-03-09 14:34:26 +00:00
Carl Worth
c3bd9b1b8d Change the draw function under test to return a cairo_test_status_t so that it can indicate test failure even if there is no result image. 2005-03-09 13:58:20 +00:00
Carl Worth
80b2742952 fix typos. 2005-03-09 13:56:37 +00:00
Carl Worth
2fbdcf2082 Update API Shakeup planning chart. 2005-03-09 12:53:01 +00:00
Carl Worth
6d4653fe22 Rename all the cairo_current functions to cairo_get functions instead. Add documentation for all of these functions (and a few others as well).
Add support so that old binarys should still run and old source should still compile, (though we'll rip that out again on the API Shakeup flag day).
2005-03-09 12:35:36 +00:00
Carl Worth
36820ec40a Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_4_0. 2005-03-08 19:34:04 +00:00
Carl Worth
980eff38e4 Commit workaround to prevent make distcheck from making bogus complaints that gtk-doc is not enabled. 2005-03-08 19:30:19 +00:00
Carl Worth
e586688e6b Look for png images in ${srcdir}/filename as well, so that make distcheck can still find them.
Add romedalen.png to EXTRA_DIST so the tests can pass from the tar file.
Fix typo: cairo-win3 -> cairo-win32.
Add cairo-win32.xml to the list, so it gets generated as well.
Add pointer to new win32 documentation.
2005-03-08 19:25:39 +00:00
Carl Worth
0c67d496a3 Increment CAIRO_VERSION to 0.4.0
Added notes for snapshot 0.4.0
2005-03-08 17:36:24 +00:00
Carl Worth
627338ab4a Fix accidental commit of diff, rather than ref image. 2005-03-08 14:30:14 +00:00
Carl Worth
c05059f62f Update coverage-ref.png due to seemingly harmless, though not entirely understood changes. 2005-03-08 14:25:54 +00:00
Carl Worth
246a07022a Shared function for checking unlink errrors. (cairo_test): Move all error messages to test-specific log files for quieter test output.
Make pixman_rotate an expected failure.
2005-03-08 13:44:14 +00:00
Carl Worth
4dcccab806 Require libpixman >= 0.1.4. 2005-03-08 08:51:48 +00:00
Kristian Høgsberg
74416f2d9a Return CAIRO_STATUS_SUCCESS even if we don't implement masks yet, so we don't set cr->status to CAIRO_INT_STATUS_UNSUPPORTED. 2005-03-07 21:22:42 +00:00
Carl Worth
c4697bc572 Disable the "new" intersection code so that the incorrect fill problems (test/fill_rule) go away. 2005-03-07 14:23:07 +00:00
Carl Worth
864496a10a Increment version to 0.1.4-head post-snapshot. 2005-03-07 13:50:30 +00:00
Carl Worth
dfcd68ecca Add notes on using -head suffix for PIXMAN_VERSION. 2005-03-07 13:20:52 +00:00
Carl Worth
32fbb0afae Make configure fail if no font backend is available. Point the user at freetype and fontconfig. 2005-03-07 12:40:29 +00:00
Carl Worth
5804df2bcc Add notes for snapshot 0.1.4.
Increment version to 0.1.4.
2005-03-07 12:16:33 +00:00
Owen Taylor
e7607bb379 Comment and clean up the gradient computation. (_cairo_linear_pattern_classify): Determine if a linear gradient is horizontal or vertical. (_cairo_pattern_acquire_surface_for_gradient): Optimize horizontal/vertical gradients with a repeating surface.
Test case for linear gradients at angles and with a rotated pattern matrix.
2005-03-06 12:05:23 +00:00
David Reveman
023d911232 Fix gradient acceleration in glitz backend 2005-03-06 05:16:19 +00:00
Owen Taylor
50b483042d src/cairo_win32_font.c src/cairo_win32_surface.c: Update for recent backend interface changes.
Reenable win32 backend by default.
2005-03-04 10:43:24 +00:00
Carl Worth
f6dcd38c8c Fix accidental reversal of condition in previous patch. 2005-03-04 10:07:22 +00:00
Owen Taylor
66af5f9f36 src/cairoint.h src/cairo_pattern.c src/cairo_glitz_surface.c: Add _cairo_pattern_is_opaque, use it rather than pattern->alpha == 1.0. 2005-03-04 09:41:34 +00:00
Carl Worth
c4443533e8 Intersect bounds of trapezoids with the bounds of the destination surface before creating an intermediate surface. 2005-03-04 07:53:09 +00:00
Carl Worth
b1545db066 Add comment from xserver's mitrap.c. 2005-03-04 07:31:49 +00:00
David Reveman
4552898cfb Update xcb backend 2005-03-03 20:16:23 +00:00
David Reveman
f54f78525a Fixed variable assignments in configure.in 2005-03-03 19:09:24 +00:00
David Reveman
378fb57051 Add more mask surface acceleration to glitz backend 2005-03-03 18:55:28 +00:00
David Reveman
01b87c7d99 Add overall alpha acceleration using mask surface 2005-03-03 18:46:49 +00:00
David Reveman
50b5344d7d Pass mask to composite operation as pattern 2005-03-03 18:39:06 +00:00
David Reveman
a97f4cce5e Removed surface backend functions set_matrix, set_filter and set_repeat 2005-03-03 18:20:28 +00:00
David Reveman
36b69fc7f4 Major update to glitz backend 2005-03-03 18:04:51 +00:00
David Reveman
6c91529311 Add pixman_add_trapezoids 2005-03-03 18:02:23 +00:00
David Reveman
019d381b40 Change to cairo_surface_t like structure of of cairo_pattern_t 2005-03-03 17:40:04 +00:00
Carl Worth
849a7ca8ef Port from render/mipict.c.
Merge in optimization from render/mitrap.c for op==ADD and solid alpha src.
2005-03-03 14:27:31 +00:00
Carl Worth
e533d2faeb Add a few more things that might be helpful when moving more files over from xserver. 2005-03-03 13:54:40 +00:00
Carl Worth
f482f2be49 Move definitions of MIN and MAX macros from ictrap.c to icint.h. 2005-03-03 13:52:49 +00:00
Carl Worth
76d89e8257 Remove dead "if (!format)" code which also makes things more in synch with the server's mitrap.c. 2005-03-03 13:47:04 +00:00
Carl Worth
15bb06aaa0 Restore original copyright and license which must have been inadvertently changed. 2005-03-03 13:36:30 +00:00