Commit graph

1023 commits

Author SHA1 Message Date
Carl Worth
c90bd12ec7 Do nothing if src image has width or height == 0 to avoid potential divide-by-zero. 2005-01-04 11:55:36 +00:00
Carl Worth
7a5a3cb208 Remove unused CAIRO_TRAPS_GROWTH_INC.
Resize arrays by doubling rather than by linear increments.
Add new bug exposed centi_unfinished.svg.
2004-12-23 13:49:56 +00:00
Carl Worth
f76d898cf1 Rename __internal_linkage to pixman_private.
Track rename to pixman_private and move it to before the function return value to quiet gcc warnings about visibility attribute ignored for non-class type.
2004-12-23 11:10:08 +00:00
Carl Worth
cd21775ef9 Fix to actually call pixman_fill_rect_32bpp in the 32 bpp case. Thanks to TOKUNAGA Hiroyuki <tkng@xem.jp>. (pixman_fill_rect_8bpp, pixman_fill_rect_32bpp): Fix typo in naming: bbp -> bpp. 2004-12-23 11:00:01 +00:00
Carl Worth
e5d48545e0 Rename __internal_linkage to cairo_private and move it to the beginning of the line for function declarations. Also, drop unneeded "extern" from function declarations. 2004-12-21 13:22:44 +00:00
Carl Worth
1a21b8289f With thanks to Kristian Høgsberg <krh@bitplanet.net>:
Tag a few private functions/data that were missing __internal_linkage.
Mark cache backends as static.
2004-12-21 13:14:45 +00:00
Carl Worth
8ffb7df16c Change "head -1" to more standard "head -n 1". 2004-12-21 12:57:33 +00:00
Alexander Larsson
153bf60b3a Fix bug in earlier change. 2004-12-20 12:22:50 +00:00
Carl Worth
eecfec86f1 Re-enabled __internal_linkage for all internal functions. Now avoid the warning by moving the * from the return type after the __internal_linkage macro. It looks awaful, but it keeps the compiler quiet. 2004-12-20 09:53:06 +00:00
Alexander Larsson
5c1c5e67dc Add _cairo_gstate_restore_external_state, _cairo_fixed_integer_floor and _cairo_fixed_integer_ceil.
Call _cairo_gstate_restore_external_state on restore.
Fix cache-misses.
Implement floor and ceil
Restore surface clip region on restroe.
(_calculate_region_for_intermediate_clip_surface), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_show_surface), (_cairo_gstate_show_glyphs): Create intermediate clip surfaces of the minimal required size.
2004-12-20 09:43:59 +00:00
Carl Worth
8fe87a32a8 Add Alexander Larsson to AUTHORS list. 2004-12-20 08:58:38 +00:00
Carl Worth
cc0c442d04 Split off from _cairo_xlib_surface_create to avoid roundtrip when size is already known. (cairo_xlib_surface_create): Simplified to just call XGetGeometry that defer to _cairo_xlib_surface_create_with_size. Add comment about remaining roundtrip and possible plans to eliminate it later with a new interface requiring width/height. Thanks to Alexander Larsson <alexl@redhat.com>. 2004-12-20 08:56:50 +00:00
Carl Worth
e3fe2138fe Split off from _cairo_xlib_surface_create to avoid roundtrip when size is already known. (cairo_xlib_surface_create): Simplified to just call XGetGeometry that defer to _cairo_xlib_surface_create_with_size. Add comment about remaining roundtrip and possible plans to eliminate it later with a new interface requiring width/height. 2004-12-20 08:52:47 +00:00
Carl Worth
682202fdfa Disabled test that was killing my machine for some reason. Scary. 2004-12-20 08:08:29 +00:00
Carl Worth
725d363877 Change return value from cairo_status_t to cairo_int_status_t to match definition in cairo_surface_backend_t. 2004-12-20 07:38:38 +00:00
Carl Worth
31534f264c Add bug about gcc 3.4 warning: '__visibility__' attribute ignored on non-class types.
Remove __internal_linkage macro from all functions returning pointers to shut up warning from gcc 3.4.
2004-12-20 07:32:45 +00:00
Alexander Larsson
e291f1d882 Special case solid color rectangle fills. 2004-12-20 06:15:21 +00:00
Carl Worth
a827069cc5 Fix to find reference images in local directory when run directly, (rather than by "make check"). 2004-12-17 13:23:32 +00:00
Carl Worth
5c33c78c8c Add bug about invalidating font caches. 2004-12-17 11:31:05 +00:00
Øyvind Kolås
e656b1f3ba normalizing ChangeLog headers 2004-12-06 00:01:45 +00:00
David Reveman
cb0364a28c Revert clipping changes 2004-12-01 16:27:18 +00:00
Carl Worth
e5d50e0759 Fix typo: LPGL->LGPL. 2004-11-29 18:25:23 +00:00
Carl Worth
d098370411 Remove unintentional copyright statement from user-generated output image. 2004-11-29 14:11:26 +00:00
Carl Worth
5c143241df Note that text_cache_crash is expected to fail.
Add test to demonstrate bug when item is too big for cache.
Really remove that refcount assertion this time.
2004-11-23 13:38:09 +00:00
Carl Worth
7478ea5051 Add note that bug has been fixed. (main): Instrumentation code for testing cache destruction.
Support tests that produce no output, (don't check image if (width,height) == (0,0)).
Add #include <assert.h> here rather than in multiple .c files.
Add const qualifier to static cache_arrangements table. (_cache_sane_state): Remove refcount assertion as it it false during the cairo_cache_destroy. (_cache_sane_state): #include <assert.h> moved up to cairoint.h (_entry_destroy): Fix bug in assertion (used_memory >= entry->memory), not >. (_cairo_cache_destroy): Fix timing of refcount decrement so that the destroy function actually works.
2004-11-23 12:53:46 +00:00
Carl Worth
78f1206bf8 Don't destroy a NULL font. 2004-11-14 10:07:54 +00:00
Carl Worth
2b76ec2d46 Unconditionally destroy the old font, (otherwise, if the same font was selected twice in a row, a reference was lost to it, leading to assertion failures). 2004-11-13 19:46:18 +00:00
Stuart Parmenter
d29237e9c0 Added GDI+ backend to Cairo. 2004-11-12 14:46:23 +00:00
Carl Worth
b6a2e10301 Move declarations above statements to satisfy pre-C99 compilers. Thanks to Michael Johnson <ahze@ahze.net>. 2004-11-12 06:12:20 +00:00
Carl Worth
10deb4c4ae Added BUG entry 2004-11-11 12:15:12 +00:00
Carl Worth
fe728e5532 (draw): Move x_off, y_off calculation outside of loop to emphasize loop-independence. 2004-11-09 14:27:32 +00:00
Carl Worth
9dacc32fbc Increase size and increase number of different angles drawn. (draw): Fix broken usage of extents (missing bearings), add stroked bounding box (shifted out by 0.5 units to just abut the text), and increase position adjustments to make room for this larger box. 2004-11-09 14:22:37 +00:00
Dave Beckett
a373313c73 Fix the bit that patch --reverse failed to do. "cvs diff -r1.256 ChangeLog" is just my change now. 2004-11-08 14:15:31 +00:00
Dave Beckett
186f14eeb6 Restore the huge bit of ChangeLog I just deleted, then add my 6 lines. 2004-11-08 14:08:16 +00:00
Dave Beckett
9d03237884 require libpixman 0.1.2 since src/cairo_glitz_surface.c depends on two new functions of 0.1.2 - pixman_format_get_masks and pixman_image_get_format 2004-11-08 13:33:42 +00:00
Graydon Hoare
ed08ea6bba Change the signs of a variety of metrics, which were backwards.
Return early if we found a rectangular clip at all, not just in error case.
Give render glyphset entry the negative bbox offsets it wants, not the bearings.
2004-11-05 10:57:50 +00:00
Carl Worth
12a86de2c4 Add new test demonstrating assertion failure in cairo_cache_lookup.
Add new test showing problems with rotated text.
2004-11-04 14:23:50 +00:00
David Reveman
ca61417f7d Tracking changes to glitz 2004-11-03 15:28:37 +00:00
David Reveman
f1cf7d4331 Fixed return status of _cairo_gstate_clip 2004-11-03 15:05:24 +00:00
Olivier Andrieu
32cde60a05 remove cairo_ft_font_destroy() prototype. 2004-11-01 07:58:27 +00:00
Carl Worth
0340265ce4 Abort release-publish if there's already a published tar file with the current version. (release-publish): Add code to update the LATEST-package-version file. 2004-10-28 08:48:07 +00:00
Carl Worth
2473e782ca Abort release-publish if there's already a published tar file with the current version. (release-publish): Add code to update the LATEST-package-version file. 2004-10-28 08:36:42 +00:00
Carl Worth
327dc6f2ae Add note on reverted tessellation regression bugs. 2004-10-27 13:19:39 +00:00
Carl Worth
d18aad05f3 Increment CAIRO_VERSION to 0.2.0.
Add notes for snapshot 0.2.0.
2004-10-27 13:13:39 +00:00
Carl Worth
377983fdf3 Update release instructions for new release-publish target.
Add release-check and release-publish targets copied from libpixman.
2004-10-27 11:59:56 +00:00
Carl Worth
39d57762a6 Fix to always link tests against locally built library, not installed version. 2004-10-27 11:42:45 +00:00
Carl Worth
1839d679b1 Put the tag command back which was accidentally removed from the instructions. 2004-10-27 10:53:44 +00:00
Carl Worth
667fa8fc15 Add new test for cairo_set_fill_rule. Also demonstrate some of the current tessellation bugs with the version of the code that is in CVS. 2004-10-27 10:48:58 +00:00
Carl Worth
944b1721e1 Suggest "cvs -q update -Ad" as an alternative to checkout. 2004-10-27 09:43:22 +00:00
Carl Worth
ed1ad71417 Update date since 0.1.2 release didn't get pushed out until today.
Update release instructions to include new release-publish target.
Add release-check and release-publish targets to simplify the release process.
2004-10-27 09:37:34 +00:00