Carl Worth
86869f02b9
Force distcheck to enable gtk-doc.
2005-06-20 17:01:36 +00:00
Carl Worth
d7ef15d4b4
Added notes for snapshot 0.5.1
...
Increment CAIRO_VERSION to 0.5.1
2005-06-20 16:35:40 +00:00
Carl Worth
74e3cc672f
Fix abbreviated ChangeLog
2005-06-20 16:31:17 +00:00
Owen Taylor
ea2a04d901
Workaround for https://bugs.freedesktop.org/show_bug.cgi?id=3566
...
Detect servers with a bug in repeating surfaces by checking vendor string and version.
For such surfaces
Save clip rects when setting a clip region on a surface so that we set the right clip for the surface's GC if we create it later.
2005-06-20 15:48:46 +00:00
Carl Worth
1ce9be9541
Make out parameters optional. Style cleanup.
2005-06-20 12:54:15 +00:00
Carl Worth
ab668278b0
Abstract CAIRO_ALPHA_IS_OPAQUE out for general internal use.
...
Optimize to defer to cairo_paint if the alpha value is actually opaque.
2005-06-20 11:09:51 +00:00
Carl Worth
f15ec64e7f
Rip out cairo_set_error_notfiy function as it is clear that it is not the right approach.
...
Remove error-notify test.
2005-06-20 09:59:23 +00:00
Carl Worth
3b8da5f213
Remove references to repeat and matrix fields that no longer exist.
2005-06-17 23:22:20 +00:00
Owen Taylor
92222f8bca
Fix width/height typo.
2005-06-17 16:19:08 +00:00
Kristian Høgsberg
66f8b1202e
Remove matrix, filter and repeat from the cairo_surface_t struct.
2005-06-17 13:25:19 +00:00
Carl Worth
9318742aa4
cairo_reference and cairo_destroy shouldn't behave differently when cr->status indicates an error. Fix this bug that just slipped back in.
...
Remove useless conditional return at the end of a void function.
Fix so that after calling _cairo_error the most that any cairo entry function ever does is return a previously computed value.
2005-06-17 11:24:24 +00:00
Kristian Høgsberg
c71f0904f1
Remove the path clipping entry from the list.
2005-06-17 10:48:47 +00:00
Carl Worth
7c811e0ac6
update documentation build stuff
2005-06-16 12:31:56 +00:00
Carl Worth
d6eca5a45f
Reorder fields of cairo_private_t to match initialization order.
...
Call error_notify callback if set. (cairo_create): Initialize error_notify callback to NULL. (cairo_set_error_notify): New function to allow the user to set an error notify callback.
New cairo_set_error_notify prototye.
New test for cairo_set_error_notify.
2005-06-16 12:20:46 +00:00
Carl Worth
18c2d12b9e
Add CAIRO_STATUS_DESTROYED to TODO list.
...
Note progress on consistent error handling.
Fix typo in documentation comment for _cairo_surface_get_current_clip_serial.
2005-06-15 16:52:11 +00:00
Owen Taylor
615d509767
Remove --only-section-tmpl; it doesn't really work currently :-(.
2005-06-15 16:04:19 +00:00
Owen Taylor
a3906e65aa
Use a clip region when rendering a non-solid pattern through a rectangular path ... trapezoid rasterization is just too slow to use that path when we aren't forced to do so.
2005-06-15 12:44:52 +00:00
Carl Worth
fac3cd46b3
(cairo_test_for_target): And add missing parenthesis.
2005-06-15 10:58:52 +00:00
Carl Worth
0b122003e7
Track removal of cairo_status_string.
2005-06-15 10:56:31 +00:00
Carl Worth
ac17f1ce68
Add cairo_finish to TODO list. Note that cairo_satus_string has now been removed.
2005-06-15 10:54:00 +00:00
Carl Worth
4834b8e7f0
Remove cairo_status_string function which can now be replaced by:
...
cairo_status_to_string (cairo_status (cr));
This allows consistent handling of status values for things like cairo_pattern_status where there is now cairo_pattern_status_string function.
2005-06-15 10:52:01 +00:00
Carl Worth
e3c92f2613
Add _cairo_error so we have a single function which all errors can pass through. This allows the user to set a breakpoint on error and will allow us to augment error handling later as necessary.
...
Make all assignements to cr->status go through the new _cairo_error function. Remove CAIRO_CHECK_SANITY macro.
2005-06-15 10:46:49 +00:00
Carl Worth
e749cf524c
Remove cairo-atsui section since cairo-atsui.h is currently empty. Add cairo_path_data_type_t and cairo_path_data_t.
...
Add pdf-clip and pdf-clip.pdf.
2005-06-15 10:41:41 +00:00
Kristian Høgsberg
476fe9a66e
Implement path clipping and refactor _cairo_gstate_clip() out in three different functions corresponding to the three different clipping modes.
...
Add NULL pointers for intersect_clip_path.
New test case to exercise PDF clipping code.
2005-06-14 19:45:22 +00:00
Carl Worth
663e39a63c
Remove Boolean 'drawable' parameter from the create_similar surface backend function since nothing anywhere is actually using this parameter.
2005-06-14 15:38:15 +00:00
Tor Lillqvist
d2ddfe42a9
Correct extents for text with a general tranform.
2005-06-14 14:12:00 +00:00
Carl Worth
bb7eeeb749
Remove comment suggesting ambiguity of whether cairo_get_target references the surface, (we decided as part of the API shakeup that cairo functions returning pointers to internal objects do not automatically take a reference).
2005-06-14 11:58:14 +00:00
Carl Worth
8084fb9b09
Add new _cairo_pattern_create_in_error.
...
Propagate error values from cr->status to pattern->status.
2005-06-13 16:53:52 +00:00
Carl Worth
14ae3ce3ad
No longer need to check for NULL after creating a pattern.
...
Propagate status errors from pattern->status to cr->status.
Originally 2005-05-08 Owen Taylor <otaylor@redhat.com>:
src/cairo-pattern.c src/cairoint.h: If allocation of pattern objects fails, return special static nil pattern objects.
If adding a color stop fails to allocate memory, set pattern->status. (And fix a memory leak.) Make public functions return when pattern->status is set, (and no longer return a cairo_status_t).
src/cairo-pattern.c src/cairo.h doc/public/cairo-sections.txt: Add cairo_pattern_status()
Check the status of gstate->source and of mask patterns passed in.
2005-06-13 16:36:40 +00:00
Carl Worth
15fb5e0d27
Originally 2005-05-08 Owen Taylor <otaylor@redhat.com>:
...
If cairo_create() fails, return a special static object, cairo_nil.
Don't return early if cr->status is set. cr->status should not affect reference counting.
Ignore any magic object with a reference count of -1.
2005-06-13 16:35:03 +00:00
Carl Worth
01e1844e9c
Originally 2005-06-02 Carl Worth <cworth@cworth.org>:
...
Add a status field to cairo_path_t.
Add documentation for the new approach for handling errors in these functions---always returning a valid pointer with at least a status. (cairo_append_path): Propagate path status errors to the context. Add note to documentation on initializing path->status.
Add missing cairo_private qualifier to a couple functions.
Track new status field in cairo_path_t. (cairo_path_destroy): Don't destroy cairo_path_nil. Add documentation. (_cairo_path_data_create): (_cairo_path_data_create_flat): (_cairo_path_data_append_to_context): Add documentation. (_cairo_path_data_create_in_error): New function to create a placeholder cairo_path_t just to propagate a cairo_status_t error.
2005-06-13 16:29:26 +00:00
Carl Worth
730fb40455
Make these functions static, which allows slightly less awkward error handling within them.
2005-06-11 01:09:15 +00:00
Carl Worth
df19a5aa7e
Provide font-backend-specific macros for FONT_FAMILY_DEFAULT. Change CAIRO_FT_FONT_FAMILY_DEFAULT from "serif" to "" to allow the actual default to come from the system/user configuration.
2005-06-11 00:06:04 +00:00
Carl Worth
ff2dee65bd
Pull the enum out from inside cairo_path_data_t and give it a name of cairo_path_data_type_t. This allows C++ programs to see the enum values. It also allows variables to be declared of this type for manually constructing a cairo_path_t.
2005-06-10 23:47:23 +00:00
Carl Worth
4c37790a22
Add 'consistent error handling' to 1.0 roadmap. (This isn't new, we just forgot to list it here before).
...
Big cleanup to remove finished items. Also, split the file up to separate TODO items that affect the API from items that do not.
2005-06-10 13:23:24 +00:00
Carl Worth
2a1c880645
Big cleanup to remove finished items. Also, split the file up to separate TODO items that affect the API from items that do not.
2005-06-10 13:19:45 +00:00
Carl Worth
6cd484a4c0
Originally: 2005-06-09 Carl Worth <cworth@cworth.org>
...
Rework occurrences of 'if (status == CAIRO_STATUS_SUCCESS)' to use 'if (status)' instead where trivial.
2005-06-10 12:46:49 +00:00
Carl Worth
31dcb954fe
Remove STATUS_OK macro which was not being used universally.
2005-06-10 12:18:20 +00:00
Carl Worth
e6eef09115
Remove trailing comma from enum values which gcc 4.0 does not want to see (Luis Villa). Closes bug #3502 .
2005-06-09 12:27:02 +00:00
Owen Taylor
23976d00b2
Add
...
-I$(top_builddir)/src for cairo-features.h (Tomasz Cholewo)
2005-06-09 07:26:40 +00:00
Keith Packard
c1c8c57b90
Font matrix was output incorrectly; the implicit mirror-in-y transformation was not computed correctly, missing a negation of the 'xy' component.
2005-06-07 23:28:12 +00:00
Carl Worth
4f2f520dce
Allow NULL as a valid value for several objects. That is, calling reference or destroy on these objects will simply do nothing, successfully.
...
Remove extra whitespace.
2005-06-03 16:45:46 +00:00
Kristian Høgsberg
7b4a65dba4
When clipping, update the clip surface to a new surface the size of the intersection of the old clip surface and the extents of the new clip path.
2005-06-03 16:40:15 +00:00
Carl Worth
7c47633b2c
Remove unused cache->refcount and _cairo_cache_reference().
...
Remove gratuitous nesting as recommended in CODING_STYLE.
2005-06-03 16:22:26 +00:00
Carl Worth
756e991b91
Fix name of _cairo_user_data_array_destroy to be _cairo_user_data_array_fini.
2005-06-03 16:16:44 +00:00
Carl Worth
42c1fb7c91
Rename functions to match the naming scheme used by cairo-cache.c and all other users of it. Though it's quite likely that glitz had this right and now everything could be changed to match it instead. I'll save that for some day when we're cleaning up the cache code.
2005-06-03 16:08:28 +00:00
Carl Worth
97ac61700a
Fix spelling errors.
2005-06-03 15:56:52 +00:00
Carl Worth
5699072035
Fix Freudian unwrapped line in paragraph describing why long lines should be wrapped.
2005-06-03 15:54:40 +00:00
Carl Worth
36beed9bf1
Add CODING_STYLE document to standardize on some style issues.
...
Standardize brace handling around all else clauses according to new CODING_STYLE guidelines.
2005-06-03 14:51:57 +00:00
Kristian Høgsberg
f87fd91bcf
Patch from Tomasz Cholewo <cholewo@ieee-cis.org>:
...
Store the index of the checksum instea of a pointer to the location.
2005-06-03 10:28:42 +00:00