[cairo-commit] src/cairo-atsui-font.c
Brian Ewins
brianewins at kemper.freedesktop.org
Tue Mar 6 15:46:10 PST 2007
src/cairo-atsui-font.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
New commits:
diff-tree 32536a7b794c38ff1944b8af5e56e8962e76c311 (from 9032bf4e2d3bffe84d11a771ba4072cdd8926b77)
Author: Brian Ewins <Brian.Ewins at gmail.com>
Date: Tue Mar 6 23:45:23 2007 +0000
[atsui] clean up warnings
Just tidying up warnings left behind by previous fixes.
diff --git a/src/cairo-atsui-font.c b/src/cairo-atsui-font.c
index cf02a5c..d9fbde3 100644
--- a/src/cairo-atsui-font.c
+++ b/src/cairo-atsui-font.c
@@ -203,17 +203,17 @@ CreateSizedCopyOfStyle(ATSUStyle inStyle
double xscale = 1.0;
double yscale = 1.0;
CGAffineTransform theTransform;
+ Fixed theSize;
+ const ATSUAttributeTag theFontStyleTags[] = { kATSUSizeTag, kATSUFontMatrixTag };
+ const ByteCount theFontStyleSizes[] = { sizeof(Fixed), sizeof(CGAffineTransform) };
+ ATSUAttributeValuePtr theFontStyleValues[] = { &theSize, &theTransform };
+ /* Set the style's size */
_cairo_matrix_compute_scale_factors(scale, &xscale, &yscale, 1);
theTransform = CGAffineTransformMake(1.0, 0,
0, yscale/xscale,
0, 0);
-
- /* Set the style's size */
- Fixed theSize = FloatToFixed(xscale);
- const ATSUAttributeTag theFontStyleTags[] = { kATSUSizeTag, kATSUFontMatrixTag };
- const ByteCount theFontStyleSizes[] = { sizeof(Fixed), sizeof(CGAffineTransform) };
- ATSUAttributeValuePtr theFontStyleValues[] = { &theSize, &theTransform };
+ theSize = FloatToFixed(xscale);
err = ATSUCreateAndCopyStyle(inStyle, &style);
@@ -930,7 +930,6 @@ _cairo_atsui_font_old_show_glyphs (void
void *extra = NULL;
cairo_bool_t can_draw_directly;
cairo_rectangle_int16_t rect;
- cairo_quartz_surface_t *surface = (cairo_quartz_surface_t *)generic_surface;
ATSFontRef atsFont;
CGFontRef cgFont;
More information about the cairo-commit
mailing list