Commit graph

1408 commits

Author SHA1 Message Date
Carl Worth
71e9372bbd Fix text disappearing after space (bug #6617)
What happened here is that when fixing bug #5734 we cahnged the
glyph image cache lookup to never return a NULL pointer, but to
instead return a 0x0 image surface. We didn't also update code
that was looking for a NULL pointer here, and as such we were
calling XRenderAddGlyphs with a 0x0 image which apparently
tickles a bug in some X servers.
2006-07-26 13:04:25 -07:00
Behdad Esfahbod
e942518615 Clarify that git tag -s does GPG signing. 2006-03-15 15:17:26 -05:00
Behdad Esfahbod
98facc6c2d Add a release-publish-message target to only get the message. 2006-03-15 14:19:08 -05:00
Behdad Esfahbod
75b0ab0d66 Increment version to 1.0.5 after release. 2006-03-15 14:18:40 -05:00
Behdad Esfahbod
8c188e45ee Cairo-1.0.4 released.
Increment CAIRO_VERSION to 1.0.4 and libtool versioning to 4:4:2.
Add notes for the 1.0.4 release.
2006-03-15 14:04:00 -05:00
Behdad Esfahbod
d3ff5228a2 WIN32: Define SHADEBLENDCAPS and SB_NONE if they are not defined. (from Tor Lillqvist) 2006-03-15 14:02:14 -05:00
Behdad Esfahbod
b3886d1968 Add CAIRO_TEST_TARGET environment variable for limiting backends to test. 2006-03-15 12:16:59 -05:00
Carl Worth
ba5b30117b Remove unused RCS $Id:$ tags.
(cherry picked from f2245a7932 commit)
2006-03-15 11:53:59 -05:00
Vladimir Vukicevic
9acc981e44 Win32: Handle BitBlt in get_image failure and AlphaBlend not being supported
If the BitBlt in get_image fails, we pretty much can't do anything -- so
fill the destination with white and hope for the best.  This enables
somewhat accurate printing of complex operations.  Also, check the
destination device caps before calling AlphaBlend; return UNSUPPORTED if
the destination DC can't do AlphaBlend.
(cherry picked from 9831de538e347a624af5b0ca38242b198b64bd45 commit)
(cherry picked from 1a14419126 commit)
2006-03-15 11:53:43 -05:00
Vladimir Vukicevic
ec4b006c16 Win32: Set surface format based on device caps
If the DC is a display DC, inspect its depth and set out local format
appropriately.  If it's not a display DC, assume RGB24.
(cherry picked from 6dd0a70d271f93df95f4bcaff5073b9bf90cecb6 commit)
(cherry picked from 2d784815ff commit)
2006-03-15 11:53:30 -05:00
Vladimir Vukicevic
d7b280a3ad Win32: Fix up src coords before calling AlphaBlend/BitBlt to avoid invalid calls
Fixes up src coords and width/height before calling AlphaBlend/BitBlt; it's
an error to try to use a region that extents outside of the source surface
as a source DC.

Doesn't repair the extra region relative to the operator -- e.g. regions
outside of an ARGB source surface with SOURCE operator should be cleared
to fully transparent black in the destination.
(cherry picked from bc19c5b64b0e38e9d20045907d7b47d79f6afc60 commit)
(cherry picked from 68ed40b6da commit)
2006-03-15 11:53:14 -05:00
Vladimir Vukicevic
b07f042861 Win32: Rework clip and extents handling
- Save extents at surface creation and always return these
- Simplify clipping paths
(cherry picked from a67722b3d7280e6c2375778c2d46556cca261bfc commit)
(cherry picked from 7ce09732a978749a4da814feb77f50161dc42c91 commit)
(cherry picked from e0f4eecb91 commit)
2006-03-15 11:49:56 -05:00
Behdad Esfahbod
5cbf914770 Misc compilation fixes (C++-style comments, M_PI decls, etc.)
(cherry picked from d0cc56b9a24fa59febc15ac5de073da0e785e1cc commit)
(cherry picked from a6a054abe45287eb950c294e20366594313138f5 commit)
(cherry picked from f6b4fabaf5 commit)
2006-03-15 11:49:37 -05:00
Behdad Esfahbod
e78c945b61 Check font_face->status and return a nil scaled font if it is in an error state. (Thanks to Christian Biesinger and sunmoon1997 who pointed this out as part of bug #4674)
Cherry-picked from head's cairo-scaled-font.c
2006-03-15 11:32:41 -05:00
Behdad Esfahbod
44e7c120a7 Fix test to use fontconfig properly so that the test no longer fails. Fixes bug #4674. (Thnks to sunmoon1997 for the fix).
(cherry picked from a6ad853ee1 commit)
2006-03-15 11:27:15 -05:00
Behdad Esfahbod
a1621eadb6 Note using "git diff" instead of "git status" as the latter is a bit tricky when it says nothing to commit... 2006-03-15 11:25:02 -05:00
Behdad Esfahbod
508b0be5f2 Update release infra to reflect git transition. 2006-03-15 11:18:40 -05:00
Behdad Esfahbod
9cfa638ba0 Add new ref images. 2006-03-15 11:04:56 -05:00
Behdad Esfahbod
393000021c Add make bits to autogenerate ChangeLog 2006-03-15 10:59:59 -05:00
Behdad Esfahbod
d415ea9b60 Shhhh..... 2006-03-15 10:33:36 -05:00
Carl Worth
286cfe2c9e autogen.sh: Pass --foreign option to automake so that it doesn't
complain that ChangeLog does not exist.
(cherry picked from d0e02a948e commit)
2006-03-15 10:32:49 -05:00
Behdad Esfahbod
35d7810f7b Remove ChangeLog here too. We'll generate it using git log. 2006-03-15 10:31:43 -05:00
Behdad Esfahbod
ff33ddb8f8 Remove duplicate definitions of pixman_color_to_pixel and pixman_composite.
(cherry picked from 9e7076fd27 commit)
2006-03-15 10:23:21 -05:00
Behdad Esfahbod
af0cbe2aed Allow _get_bitmap_surface to work for 0x0 glyphs, (fix for bug #5734).
Patch from: Behdad Esfahbod <freedesktop@behdad.org>
Reviewed by: Carl Worth <cworth@cworth.org>
(cherry picked from 0152bd3a56 commit)
2006-03-15 10:15:47 -05:00
Behdad Esfahbod
6da5947efa Bug #4260, Reviewed by B. Biggs
Use & not && for bitwise AND.
src/fbpict.c src/fbmmx.c: Take 'dest' as an argument, if pict and dest don't match for RGB, BGR, swap result.
(cherry picked from a1bca924b9 commit)
2006-03-15 10:07:58 -05:00
Carl Worth
a5d13b4729 fbCompositeTrans_0888xnx0888: Fix suspicious logical negation of pointer value.
Surely, the ! instead of ~ here was just a typo. I'd feel better if I
had a failing test case for this though, (time to break out gcov
again).

Fixes bug #6185:

	Strange pointer operations in fbCompositeTrans_0888xnx0888 (pixman/src/fbpict.c)
	https://bugs.freedesktop.org/show_bug.cgi?id=6185
(cherry picked from 5d89faf6b3 commit)
2006-03-13 13:20:47 -08:00
Carl Worth
440bb68ef2 _clip_and_composite_trapezoids: Avoid NULL pointer dereference due to OOM.
This closes bug #6197:

	Null pointer dereference on OOM in _clip_and_composite_trapezoids()
	https://bugs.freedesktop.org/show_bug.cgi?id=6197
(cherry picked from 6f0d8eedc5 commit)
2006-03-13 12:30:00 -08:00
Carl Worth
5e399f8778 cairo-clip: Fix memory leak during OOM handling.
This closes bug #6196:

	Memory leak in _cairo_clip_intersect_path (src/cairo-clip.c)
	https://bugs.freedesktop.org/show_bug.cgi?id=6196
(cherry picked from 79075b2cb1 commit)
2006-03-13 12:20:55 -08:00
Carl Worth
13b919f126 cairo-output-stream: Don't dereference a NULL pointer due to OOM.
This close bug #6176:

	Null pointer dereference on OOM in _cairo_output_stream_create_for_file()
	https://bugs.freedesktop.org/show_bug.cgi?id=6176
(cherry picked from c780f4a562 commit)
2006-03-13 12:07:20 -08:00
Carl Worth
46646cf2b1 cairo_show_glyphs: Do nothing if num_glyphs == 0
(cherry picked from 1cffb39ff0 commit)
2006-03-08 08:19:02 -08:00
Christian Biesinger
30d4aa8631 Use C-style comments rather than C++-style in C files 2006-03-04 15:43:15 +01:00
Carl Worth
7d498ca912 _cairo_xlib_surface_show_glyphs: Break up rendering into chunks to fit
into X max request length protocol limits.

This fixes bug #5528:

	_XError from XRenderCompositeText8
	https://bugs.freedesktop.org/show_bug.cgi?id=5528
2006-03-03 11:13:36 -08:00
Carl Worth
3aac0bf670 test/show-glyphs-many: New test case to demonstrate bug #5528
This demonstrates an Xlib crash when rendering many glyphs. See:

	_XError from XRenderCompositeText8
	https://bugs.freedesktop.org/show_bug.cgi?id=5528

for more details.
(cherry picked from 34a4ad1e5b commit)
2006-03-03 10:00:01 -08:00
Frederic Crozat
d8d8694ac4 Fix usage of freetype to match Xft and follow David Turner's recommendations.
Change a little the logic in hinting to follow the same
logic as Xft and doesn't try to mix FT_LOAD_TARGET which should not be
mixed (based on David Turner comments)
2006-02-23 17:09:47 -08:00
Frederic Crozat
65c32ae36f Fix for sub-pixel BGR and vRGB 2006-02-23 16:44:44 -08:00
Frederic Crozat
540c10f3fb test/text-antialias-subpixel: Modify to demonstrate problem with subpixel BGR and VRGB 2006-02-23 16:44:19 -08:00
Carl Worth
886bc4ddb0 Rename .cvsignore to .gitignore. Add *~ and *.o.
(cherry picked from d88c19071f commit)
2006-02-21 13:53:57 -08:00
Carl Worth
4dbb1500f9 Use more portable shell syntax, ('test =' rather than 'test =='). Thanks to Richard Lloyd and Klaus Heinz. Closes bug #4823. 2005-12-07 11:45:15 +00:00
Carl Worth
3d3af95489 Remove duplicate definitions of pixman_color_to_pixel and pixman_composite. 2005-11-21 11:49:34 +00:00
Carl Worth
36f8345a70 Remove spurios INT_ prefixes which break the build with very recent binutils. 2005-11-18 10:17:29 +00:00
Tor Lillqvist
d08cabcb4c Intersect clip region with target surface so we don't waste time and memory.
Reviewed by: cworth
2005-10-12 15:06:44 +00:00
Tor Lillqvist
e1c07e99b9 Apply proper transform to generated paths. 2005-10-10 11:33:18 +00:00
Carl Worth
fe254b0ebc Fix typo leading to truncated error message (Christian Biesinger <cbiesinger@web.de>). 2005-10-08 10:58:11 +00:00
Carl Worth
4ac391f861 Add missing initialization for ximage.xoffset. 2005-10-06 11:34:46 +00:00
Anders Carlsson
167c3b430f Invoke PKG_PROG_PKG_CONFIG so $PKG_CONFIG will be set early on. 2005-10-04 13:49:33 +00:00
Carl Worth
cff8f83148 Add missing initialization for _global_image_glyph_cache_mutex (Vladimir Vukicevic <vladimirv@gmail.com>). 2005-10-03 21:59:01 +00:00
Carl Worth
588ccdb5f2 Increment CAIRO_VERSION to 1.0.3 after tagging RELEASE_1_0_2. 2005-10-03 21:56:24 +00:00
Carl Worth
169e72d6b9 Increment CAIRO_VERSION to 1.0.2 and libtool versioning to 4:3:2.
Add notes for the 1.0.2 release.
2005-10-03 17:48:04 +00:00
Bertram Felgenhauer
d290a19263 simplify id initialisation of last patch
reviewed by: keithp
2005-09-29 20:03:15 +00:00
Bertram Felgenhauer
1f515c6e6c ChangeLog cosmetics. 2005-09-29 17:35:34 +00:00