Commit graph

431 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
019d381b40 Change to cairo_surface_t like structure of of cairo_pattern_t 2005-03-03 17:40:04 +00:00
Carl Worth
2dcb6cd345 Note that cairo_output_stream_t patch has been reviewed. 2005-03-01 15:04:48 +00:00
Carl Worth
06bed80b9e Fix uninitialized value for status, (reported by Manish Singh). 2005-03-01 14:50:57 +00:00
Kristian Høgsberg
85db25b8a1 Fix this function again. Problem with signed/unsigned types reported by Jeff Muizelaar <jrmuizel@nit.ca>. 2005-02-27 11:21:39 +00:00
Kristian Høgsberg
db2eb5d4cb Remove newline in comment which was confusing gtk-doc.
Document these functions.
2005-02-27 11:02:48 +00:00
Carl Worth
cac994f1f8 Note that "user data" and "setters and getters" patches have been reviewed. Remove a few more TODO notes: cleanup cairo_snippets: DONE cairo_surface_finish: Now in API Shakeup snapping code: Decided against this 2005-02-25 14:06:19 +00:00
Carl Worth
f343b0b44a From David Reveman:
Rewrite to use cairo_bool_t for legibility.
2005-02-25 13:31:00 +00:00
Carl Worth
ebec6df7a7 From David Reveman:
Simplify code to eliminate a goto.
2005-02-25 13:03:42 +00:00
Carl Worth
03e7e13cb1 From David Reveman:
Clean up the mess that was the misnamed _cairo_gstate_create_pattern.
2005-02-25 12:58:49 +00:00
Carl Worth
1a043bbf26 Don't put an off-by-one n_stops into cairo_shader_op_t. (_cairo_shader_op_find_color_stops): Put search for two color stops containing a given offset into its own function. Handle the case of before first and after last stop by returning the nearest stop twice. (_cairo_pattern_calc_color_at_pixel): Handle case of no color stops by returning a transparent pixel. 2005-02-25 12:52:47 +00:00
Owen Taylor
8ad3ab22e4 Remove a left-over debug printf. 2005-02-24 15:48:07 +00:00
Carl Worth
aca0708fc8 Fix memory leak when realloc fails due to out-of-memory. 2005-02-24 14:06:03 +00:00
Owen Taylor
a64b7e51ee Instead of counting on ordering deletion to work (apparently it didn't on older Windows), save the initial bitmap created with the DC and reselect that into the DC. (Based on a patch by Hans Breuer) 2005-02-24 12:51:33 +00:00
Carl Worth
de7d69aff9 Add pixman_rotate to ignore list. 2005-02-24 12:30:23 +00:00
Carl Worth
04fefd1b28 Fixes from David Reveman with minor cleanups by Carl Worth:
Handle new failure possibility of _cairo_gstate_init. (_cairo_gstate_init): Handle possible failure of _cairo_pattern_create_solid. (_cairo_gstate_set_pattern): Reference new pattern before destroying existing pattern to handle the case where they are the same. (_cairo_gstate_set_rgb_color): Handle possible failure of _cairo_pattern_create_solid.
2005-02-24 12:28:51 +00:00
Carl Worth
12d19423f6 Fix typo (pointed out by Kristian Høgsberg). 2005-02-24 10:09:44 +00:00
Owen Taylor
724cf1ce71 When we created a DC/bitmap pair, delete the DC before the Bitmap so that the Bitmap will be released from the DC and can be destroyed. (Reported by Hans Breuer)
configure.in cairo.pc.in: Only require fontconfig if building FreeType font backend.
Fix output when reporting Win32 font backend.
2005-02-24 08:20:14 +00:00
Carl Worth
b210c00c30 Remove many TODO items that have now been absorbed by the API shakeup. Remove comparison with PostScript as there's nothing interesting there left unimplemented, (and cairo is already establishing its own conventions in naming and behavior that deviate from PostScript). 2005-02-24 08:07:39 +00:00