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
Bertram Felgenhauer
7e5bdaeb62
Using a pointer comparison as the fallback total order was wrong - these pointers are not stable. So we introduce our own total order instead.
...
reviewed by: cworth
2005-09-29 17:28:54 +00:00
Tor Lillqvist
9b27a73020
Use _cairo_utf8_to_utf16 for character conversion.
2005-09-28 10:37:40 +00:00
Tor Lillqvist
0cb8ee21b5
Bug #4612 , reviewed by cworth.
...
Add cast so that sign conversion doesn't alter comparison.
2005-09-28 10:27:39 +00:00
Tor Lillqvist
b8a08fbea6
Bug #4602 , reviewed by cworth.
...
Avoid creating size-0 bitmap, which fails.
2005-09-27 13:25:06 +00:00
Carl Worth
4b1fca82a8
Note that bug #4409 (Dashes are missing initial caps) is now fixed.
...
Move face-flipping from inside _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap variant of _cairo_stoker_add_cap.
Change to call _cairo_stroker_add_leading_cap or _cairo_stroker_add_trailing_cap as appropriate.
Remove dash-caps-joins from the XFAIL list and add reference image.
2005-09-27 12:51:00 +00:00
Carl Worth
031943b4e4
file dash-caps-joins.c was added on branch BRANCH_1_0 on 2005-09-27 19:51:00 +0000
2005-09-27 12:44:32 +00:00
Carl Worth
e26ebe1053
file dash-caps-joins-ref.png was added on branch BRANCH_1_0 on 2005-09-27 19:51:00 +0000
2005-09-27 12:44:32 +00:00
Carl Worth
6cf8e5b58b
Add two test cases. One for caps and joins (passes), and one for dashed caps and joins, (fails, see bug #4409 ).
2005-09-27 11:35:48 +00:00
Carl Worth
effdcbb5ac
file caps-joins.c was added on branch BRANCH_1_0 on 2005-09-27 19:51:00 +0000
2005-09-27 11:35:18 +00:00
Carl Worth
2fb549133e
file caps-joins-ref.png was added on branch BRANCH_1_0 on 2005-09-27 19:51:00 +0000
2005-09-27 11:35:18 +00:00
Carl Worth
8b4d49921d
Backported from HEAD:
...
Portability improvements for win32 thanks to Hans Breuer <hans@breuer.org>:
Defined sized-integer types when under the influence of _MSC_VER and without stdint.h.
Use #error which is more portable than #warning, (and more indicative of where we want to be before the next release).
2005-09-26 15:48:06 +00:00
Carl Worth
ae40e31976
Backported from HEAD:
...
Protect inclusion of fontconfig.h with HAVE_FCFINI.
Remove stray cairo-ft.h include.
Include stddef.h for NULL.
Open the file rb.
2005-09-26 15:43:17 +00:00
Tor Lillqvist
975bfe3730
If GetGlyphOutlineW() fails, set metrics to zero. ( #3927 , Hans Breuer) (Don't print error message, as this might occur frequently with a misconfigured Pango 1.10.0.)
2005-09-26 09:09:37 +00:00
Tor Lillqvist
80b2fae5f1
Set LOGFONT::lfHeight negative. A negative lfHeight means "em height" which is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) ( #4593 )
2005-09-26 09:05:14 +00:00
Tor Lillqvist
4974affc3f
Pass scratch space instead of NULL for image_extra to acquire/release_dest_image.
2005-09-20 08:23:20 +00:00
Carl Worth
e54787b78d
Avoid attempting to create a size-0 Pixmap, (to prevent the associated X error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report.
...
Remove clip-all from the XFAIL list since it works now.
2005-09-19 17:27:22 +00:00
Carl Worth
e39b239171
Originally: 2005-09-19 Hans Breuer <hans@breuer.org>
...
src/cairoint.h : win32 specific definitions for CAIRO_MUTEX_DECLARE, CAIRO_MUTEX_LOCK etc. [not based on win32 mutex but critical sections]
src/cairo-win32-surface.c : add DllMain() to do global, single-threaded 'mutex' (de)initialization. No ifdefs needed, some variables would simply not be used when the respective backend would not be compiled in.
2005-09-19 14:28:39 +00:00
Billy Biggs
dbe0552ed3
Bug #4414 , reviewed by otaylor, cworth.
...
Remove -msse from the MMX CFLAGS as it causes gcc to emit SSE instructions, however the detection code only checks for processors supporting MMX and does not require SSE. Fix the MMX test to only check for MMX intrinsics and not the SSE intrinsics.
2005-09-18 19:56:32 +00:00
Billy Biggs
178909580f
Bug #4414 , reviewed by otaylor, cworth.
...
Remove CPU detection code, only include xmmintrin.h if USE_SSE is defined.
Move CPU detection code out of the MMX file and into the generic code to avoid compiling it with -mmmx and -msse. Using these options causes gcc to use MMX and SSE instructions in the CPU detection code which causes SIGILLs on older processors.
2005-09-18 19:55:54 +00:00