mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 04:28:02 +02:00
From David Reveman:
Rewrite to use cairo_bool_t for legibility.
This commit is contained in:
parent
ebec6df7a7
commit
f343b0b44a
4 changed files with 14 additions and 7 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2005-02-25 Carl Worth <cworth@cworth.org>
|
||||
|
||||
From David Reveman:
|
||||
|
||||
* src/cairo_matrix.c (_cairo_matrix_is_integer_translation):
|
||||
Rewrite to use cairo_bool_t for legibility.
|
||||
|
||||
2005-02-25 Carl Worth <cworth@cworth.org>
|
||||
|
||||
From David Reveman:
|
||||
|
|
|
|||
|
|
@ -620,7 +620,7 @@ _cairo_matrix_compute_scale_factors (cairo_matrix_t *matrix, double *sx, double
|
|||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
int
|
||||
cairo_bool_t
|
||||
_cairo_matrix_is_integer_translation(cairo_matrix_t *mat,
|
||||
int *itx, int *ity)
|
||||
{
|
||||
|
|
@ -639,7 +639,7 @@ _cairo_matrix_is_integer_translation(cairo_matrix_t *mat,
|
|||
if (ok) {
|
||||
*itx = _cairo_fixed_integer_part(ttx);
|
||||
*ity = _cairo_fixed_integer_part(tty);
|
||||
return 1;
|
||||
return TRUE;
|
||||
}
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -620,7 +620,7 @@ _cairo_matrix_compute_scale_factors (cairo_matrix_t *matrix, double *sx, double
|
|||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
int
|
||||
cairo_bool_t
|
||||
_cairo_matrix_is_integer_translation(cairo_matrix_t *mat,
|
||||
int *itx, int *ity)
|
||||
{
|
||||
|
|
@ -639,7 +639,7 @@ _cairo_matrix_is_integer_translation(cairo_matrix_t *mat,
|
|||
if (ok) {
|
||||
*itx = _cairo_fixed_integer_part(ttx);
|
||||
*ity = _cairo_fixed_integer_part(tty);
|
||||
return 1;
|
||||
return TRUE;
|
||||
}
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1635,7 +1635,7 @@ _cairo_matrix_compute_eigen_values (cairo_matrix_t *matrix, double *lambda1, dou
|
|||
cairo_private cairo_status_t
|
||||
_cairo_matrix_compute_scale_factors (cairo_matrix_t *matrix, double *sx, double *sy, int x_major);
|
||||
|
||||
cairo_private int
|
||||
cairo_private cairo_bool_t
|
||||
_cairo_matrix_is_integer_translation(cairo_matrix_t *matrix, int *itx, int *ity);
|
||||
|
||||
/* cairo_traps.c */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue