summaryrefslogtreecommitdiff
path: root/src/cairo-stroke-style.c
AgeCommit message (Collapse)AuthorFilesLines
2008-02-06Do correct calculation of pen dimensions for stroke optimizationVladimir Vukicevic1-0/+17
2007-10-04[cairo-error] Clean up all the warnings and missing _cairo_error() calls.Chris Wilson1-4/+2
Every time we assign or return a hard-coded error status wrap that value with a call to _cairo_error(). So the idiom becomes: status = _cairo_error (CAIRO_STATUS_NO_MEMORY); or return _cairo_error (CAIRO_STATUS_INVALID_DASH); This ensures that a breakpoint placed on _cairo_error() will trigger immediately cairo detects the error.
2007-10-04[malloc/error] Add call to _cairo_error() after a failed malloc.Chris Wilson1-1/+3
Blitz all allocations to ensure that they raise a _cairo_error(CAIRO_STATUS_NO_MEMORY) on failure.
2007-06-29[fix] Avoid int overflow when allocating large buffersVladimir Vukicevic1-1/+1
This patch introduces three macros: _cairo_malloc_ab, _cairo_malloc_abc, _cairo_malloc_ab_plus_c and replaces various calls to malloc(a*b), malloc(a*b*c), and malloc(a*b+c) with them. The macros return NULL if int overflow would occur during the allocation. See CODING_STYLE for more information.
2006-06-06Remove initial, final, and duplicate blank lines.Carl Worth1-1/+0
This patch was produced by running git-stripspace on all *.[ch] files within cairo. Note that this script would have also created all the changes from the previous commits to remove trailing whitespace.
2005-11-07Add functions to initialize and copy cairo_stroke_style_t objects.Carl Worth1-0/+87
Use new _cairo_stroke_style functions rather than direct modification. Add missing prototype for _cairo_font_options_init_copy.