Commit graph

2284 commits

Author SHA1 Message Date
Carl Worth
43b579d757 Add -Wswitch-enum compiler flag and fix all trivial warnings 2006-08-07 14:30:06 -07:00
Behdad Esfahbod
d1f9bef30e Add -Wunsafe-loop-optimizations compiler flag and fix all warnings 2006-08-07 14:24:32 -07:00
Behdad Esfahbod
744ef3bf69 Add several compiler warning flags (no code changes needed)
The flags added here are as follows:

-Werror-implicit-function-declaration Wstrict-aliasing=2
-Wwrite-strings Winit-self Wpacked Wmissing-format-attribute
-Wdeclaration-after-statement
2006-08-07 13:54:57 -07:00
Behdad Esfahbod
0071102208 Add -Wwrite-strings compiler flag and fix all warnings 2006-08-07 13:13:33 -07:00
Carl Worth
eb9caf0833 Add -Wsign-compare compiler flag and fix all warnings 2006-07-28 22:50:06 -07:00
Behdad Esfahbod
5e0f46cdeb Standardize on unsigned for ref_count type and add CAIRO_REF_COUNT_INVALID
The CAIRO_REF_COUNT_INVALID macro simply hides the ((unsigned int)-1) cast
to avoid warnings about comparison between signed and unsigned values.
2006-07-28 15:41:11 -07:00
Behdad Esfahbod
84b37568e1 Add -Wold-style-definition compiler falg and fix all warnings. 2006-07-28 15:23:22 -07:00
Behdad Esfahbod
811f7af1b2 s/dist-hook/dist-hook-local/
Should drop spurious make warning.
2006-07-28 18:18:50 -04:00
Behdad Esfahbod
8411494948 Move font-matrix translation and device transform from surface to gstate
Fixes the bug that paginated backends had font-matrix translation
applied twice, AND removes a second copy of the glyphs.  It's
essentially similar to what cworth did for stroke/fill/clip in
this commit: bd92eb7f3c

Reviewed by: Carl Worth
2006-07-28 15:15:15 -04:00
Carl Worth
2f7da1aafb INSTALL: Mention DYLD_LIBRARY_PATH for mac OS X 2006-07-28 10:51:24 -07:00
Behdad Esfahbod
e5f4b92261 Make "double *dash" argument const in cairo_set_dash 2006-07-27 15:20:14 -04:00
Behdad Esfahbod
e92d693e07 Make "CAIRO_TEST_TARGET=... make check" work again
Do a funny transition of CAIRO_TEST_TARGET through TARGETS such that
one can limit tested targets both through CAIRO_TEST_TARGET env var
and TARGETS make var on the command line.
2006-07-27 14:59:53 -04:00
Behdad Esfahbod
6ced3edb69 Don't make doc upon make install. 2006-07-27 14:59:53 -04:00
Carl Worth
280823173d Update ROADMAP with 1.2.2 and 1.4 plans now that 1.2.0 is out 2006-07-27 00:57:53 -07:00
Carl Worth
456cdb3058 Elide size-zero glyphs from calls to XRender functions.
There appears to be a bug in some X servers which is triggered by
rendering 1-bit glyphs with zero size via the functions
XRenderAddGlyphs and XRenderCompositeText8 (and likely its variants).

We avoid this bug by making a copy of the glyphs array which does not
include any of the size-zero glyphs so that the X server never sees them.
2006-07-27 00:17:52 -07:00
Michael Emmel
8601c2c683 Merge branch 'master' of ssh+git://git.cairographics.org/git/cairo 2006-07-20 23:04:37 -07:00
Michael Emmel
cd2f50e6c4 Check for zero before freeing region 2006-07-20 23:01:06 -07:00
Vladimir Vukicevic
b7191885c8 [xlib] Remove XSync implementation of surface_flush
Remove the xlib implementation of surface_flush which just called XSync
before.
2006-07-17 11:33:47 -07:00
Behdad Esfahbod
84840e6bba Use font matrix offset to reposition glyph origin instead of adjusting advance
As the font matrix includes translation, which is otherwise unused for glyph
transformation, the interpretation of translation is fairly arbitrary. For
1.2.0, we choose to have this translation affect the glyph advance with the
thought that it could be used to do letter spacing/kerning. That is fairly
useless in practice, and a far more useful interpretation is to relocate
the origin of each glyph.

This patch uses the translation in the font matrix as an offset for the
glyph origin in user space. It turns out glyph extents were already correctly
shifted.

The end result with this patch is to have cairo match the 1.0 behaviour for
font matrix translations, but now we know why :-)

Explanation above courtesy of Keith Packard.
2006-07-14 21:42:41 -04:00
Behdad Esfahbod
47d3c5a2c6 Flush stdout after writing \r, to remove artifacts. 2006-07-14 20:06:34 -04:00
Carl Worth
c70edff084 Add font-matrix-translation test case. 2006-07-14 14:40:47 -07:00
Carl Worth
b390e2c456 pixman-rotate: remove stale svg backend reference images 2006-07-14 14:40:47 -07:00
Carl Worth
2b30f85cad ft-text-vertical-layout: Update stale reference images 2006-07-14 14:40:47 -07:00
Michael Emmel
5d64efdbb8 Merge branch 'master' of ssh+git://git.cairographics.org/git/cairo 2006-07-14 09:37:22 -07:00
Michael Emmel
9907813d57 Fixed debug message to use new member name 2006-07-14 09:36:35 -07:00
Behdad Esfahbod
6a5d66f651 Go back to "!!!CRASHED!!!" message now that there's no confusion. 2006-07-13 18:53:25 -04:00
Behdad Esfahbod
6c7099b0cc Only generate HTML for log files passed on the command line.
With the make bits already in place, this means that make retest
creates HTML for only the retested tests.
2006-07-13 18:50:14 -04:00
Carl Worth
4b22cb41a9 Use 'FAIL' instead of 'UNEXPECTED FAILURE' in test output.
There's no ambiguity anymore due to duplicated printing, so go
back to the classic, and easier to read wording.
2006-07-13 15:23:06 -07:00
Carl Worth
b2d04d7f1a Rename no_fail_on_stdout to eliminate confusing negative inside a Boolean variable name 2006-07-13 15:21:02 -07:00
Carl Worth
ff1280ce98 cairo-test.c: Prefer FALSE and TRUE for cairo_bool_t values. 2006-07-13 15:17:57 -07:00
Behdad Esfahbod
ebc7367306 Fix test result formatting. 2006-07-13 18:18:08 -04:00
Carl Worth
3f7593612f Make the various test and check targets depend on all as well. 2006-07-13 15:00:16 -07:00
Michael Emmel
307a17f78c Merge branch 'master' of ssh+git://git.cairographics.org/git/cairo 2006-07-13 12:17:25 -07:00
Michael Emmel
5ed64e3915 Rewrote to remove intermediate surfaces 2006-07-13 12:15:42 -07:00
Behdad Esfahbod
1409b8be0c Fix Name tag in backend .pc files to include "cairo-". 2006-07-13 14:33:41 -04:00
Behdad Esfahbod
b2668e944d Use cairo_bool_t. 2006-07-13 14:02:58 -04:00
Behdad Esfahbod
510d23acef Fix doc typo. 2006-07-13 13:39:04 -04:00
Behdad Esfahbod
601c0503f7 Send grep errors to hell^Wnull. 2006-07-13 13:37:47 -04:00
Behdad Esfahbod
09dfae5fbf Don't write FAIL messages on stdout if both stdout/err are going to screen. 2006-07-13 13:37:47 -04:00
Kent Worsnop
778c4730a8 PDF: Fix for dash-no-dash test case, (so that dashing can be turned off) 2006-07-13 10:22:19 -07:00
Carl Worth
d2d9a74c77 Add dash-no-dash test case to demonstrate PDF failure to turn off dashing. 2006-07-13 10:14:26 -07:00
Carl Worth
f3d45d1790 Eliminate a few simple compiler warnings 2006-07-13 10:14:26 -07:00
Carl Worth
65d0431b98 Add retest and recheck targets to the top-level Makefile 2006-07-13 10:14:26 -07:00
Behdad Esfahbod
da0f348350 ***cworth finds them [the background colors] a bit too bright 2006-07-13 13:16:10 -04:00
Behdad Esfahbod
cf1b23a4c5 Add prototype for draw in each test file and remove it from the header. 2006-07-13 12:58:24 -04:00
Behdad Esfahbod
f8eeca9768 Tiny doc typo fix. 2006-07-13 11:48:42 -04:00
Behdad Esfahbod
0ac2bbbf52 Improve test HTML generation:
- Make "make retest" not generate all .log files.
- Format improvements in the generated HTML file.
2006-07-13 11:27:05 -04:00
Behdad Esfahbod
f79a9f5a52 Improve backend .pc files generation:
- Add all non-pkgconfig libs to Libs.private in cairo.pc
- Make cairo-xlib-xrender.pc Require cairo-xlib.pc
2006-07-12 04:27:55 -04:00
Behdad Esfahbod
973d3a3d14 More test suite infrastructure improvements:
- Remove cairo_test_expect_failure.  cairo-test.c now checks
  env var CAIRO_XFAIL_TESTS to see if the running test is
  expected to fail.  The reason for expected failure is
  appended to the test description.
- Test description is written out.
- Failed/crashed tests also write a line out to stderr (in red),
  so one can now redirect stdout to /dev/null to only see failures.
- cairo_test() has been changed to not take the draw function
  anymore, instead, draw function is now part of the test struct.
- "make check" doesn't allow limiting backends to test using env
  var anymore.  To limit backends to test, one should use the
  TARGETS variable on the make command line.
- "make check-valgrind" now writes its log to valgrind-log instead
  of valgrind.log, to not interfere with test log file processing.
2006-07-11 22:19:39 -04:00
Behdad Esfahbod
94bdbc15f7 Improve test suite build infrastructure
- Add new target recheck, that checks only failed tests
- Add targets test and retest, and make html after (re)checking
- Make targets html and index.html lazy, only update if any tests changed
- Improve build system such that checking one test (using TESTS=...) doesn't
  build all tests
- Remove pixman-rotate from XFAIL
2006-07-11 17:27:08 -04:00