Minor, cosmetic changes:

Reowrd comment to be more clear.
Prefer return of address of base field rather than cast.
Whitespace fix.
This commit is contained in:
Carl Worth 2005-08-13 02:21:07 +00:00
parent a8b6ad3e88
commit 615a32107d
2 changed files with 17 additions and 3 deletions

View file

@ -1,3 +1,16 @@
2005-08-13 Carl Worth <cworth@cworth.org>
Minor, cosmetic changes:
* src/cairo-ft-font.c: (_cairo_ft_unscaled_font_lock_face): Reowrd
comment to be more clear.
* src/cairo-ft-font.c: (_cairo_ft_scaled_font_create): Prefer
return of address of base field rather than cast.
* src/cairo-ft-font.c: (_cairo_ft_font_face_destroy): Whitespace
fix.
2005-08-13 Carl Worth <cworth@cworth.org>
* src/cairo-ft-font.c: (_cairo_ft_unscaled_font_map_create),

View file

@ -487,7 +487,7 @@ _cairo_ft_unscaled_font_lock_face (cairo_ft_unscaled_font_t *unscaled)
return unscaled->face;
}
/* If the unscaled font was created from an FT_Face then we just
/* If this unscaled font was created from an FT_Face then we just
* returned it above. */
assert (!unscaled->from_face);
@ -1460,7 +1460,7 @@ _cairo_ft_scaled_font_create (cairo_ft_unscaled_font_t *unscaled,
scaled_font->load_flags = load_flags;
return (cairo_scaled_font_t*) scaled_font;
return &scaled_font->base;
}
cairo_bool_t
@ -2202,7 +2202,8 @@ _cairo_ft_font_face_destroy (void *abstract_face)
if (font_face->unscaled &&
font_face->unscaled->from_face &&
font_face->unscaled->base.ref_count > 1) {
font_face->unscaled->base.ref_count > 1)
{
cairo_font_face_reference (&font_face->base);
_cairo_unscaled_font_destroy (&font_face->unscaled->base);