diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-11 16:17:34 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-15 13:50:42 +0000 |
commit | fc732c3aaa53d8abcea46ad28da696ad08d09b63 (patch) | |
tree | 40b660346cad663f7f9c22e3bc70ce21a8d014c4 /src/cairo-mutex-list-private.h | |
parent | 38fcc015a5106e5007035c22355da863b3bc9def (diff) | |
download | cairo-fc732c3aaa53d8abcea46ad28da696ad08d09b63.tar.gz |
[cairo-scaled-font] Create error objects on demand.
In order to correctly report the error back to the user during the
creation of a scaled font, we need to support a nil object per error.
Instead of statically allocating all possible errors, lazily allocate
the nil object the first time we need to report a particular error.
This fixes the misreporting of an INVALID_MATRIX or NULL_POINTER that
are common user errors during the construction of a scaled font.
Diffstat (limited to 'src/cairo-mutex-list-private.h')
-rw-r--r-- | src/cairo-mutex-list-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-mutex-list-private.h b/src/cairo-mutex-list-private.h index 89fe77010..1fe5bd5ae 100644 --- a/src/cairo-mutex-list-private.h +++ b/src/cairo-mutex-list-private.h @@ -37,6 +37,7 @@ CAIRO_MUTEX_DECLARE (_cairo_pattern_solid_surface_cache_lock); CAIRO_MUTEX_DECLARE (_cairo_font_face_mutex); CAIRO_MUTEX_DECLARE (_cairo_scaled_font_map_mutex); +CAIRO_MUTEX_DECLARE (_cairo_scaled_font_error_mutex); #if CAIRO_HAS_FT_FONT CAIRO_MUTEX_DECLARE (_cairo_ft_unscaled_font_map_mutex); |