Skip to content

Commit

Permalink
gstate: White space.
Browse files Browse the repository at this point in the history
A couple of minor coding style violations.
  • Loading branch information
Chris Wilson committed Jan 22, 2010
1 parent 29bedde commit 22316a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cairo-gstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ _cairo_gstate_set_dash (cairo_gstate_t *gstate, const double *dash, int num_dash
for (i = 0; i < gstate->stroke_style.num_dashes; i++) {
if (gstate->stroke_style.dash[i] < 0)
return _cairo_error (CAIRO_STATUS_INVALID_DASH);

dash_total += gstate->stroke_style.dash[i];
}

Expand Down Expand Up @@ -562,10 +563,11 @@ _cairo_gstate_get_dash (cairo_gstate_t *gstate,
int *num_dashes,
double *offset)
{
if (dashes)
if (dashes) {
memcpy (dashes,
gstate->stroke_style.dash,
sizeof (double) * gstate->stroke_style.num_dashes);
}

if (num_dashes)
*num_dashes = gstate->stroke_style.num_dashes;
Expand Down Expand Up @@ -912,9 +914,10 @@ _cairo_gstate_copy_transformed_pattern (cairo_gstate_t *gstate,
if (! _cairo_matrix_is_identity (ctm_inverse))
_cairo_pattern_transform (pattern, ctm_inverse);

if (_cairo_surface_has_device_transform (gstate->target))
if (_cairo_surface_has_device_transform (gstate->target)) {
_cairo_pattern_transform (pattern,
&gstate->target->device_transform_inverse);
}
}

static void
Expand Down

0 comments on commit 22316a0

Please sign in to comment.