mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 23:08:03 +02:00
[atsui] clean up warnings
Just tidying up warnings left behind by previous fixes.
This commit is contained in:
parent
9032bf4e2d
commit
32536a7b79
1 changed files with 6 additions and 7 deletions
|
|
@ -203,17 +203,17 @@ CreateSizedCopyOfStyle(ATSUStyle inStyle, const cairo_matrix_t *scale)
|
|||
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 *abstract_font,
|
|||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue