mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 05:18:01 +02:00
Do not use fmax()
fmin() and fmax() are not available on all the supported architectures. MIN() and MAX() should be used in their place.
This commit is contained in:
parent
058227004e
commit
5339533737
1 changed files with 2 additions and 2 deletions
|
|
@ -1132,7 +1132,7 @@ _cairo_matrix_to_pixman_matrix_offset (const cairo_matrix_t *matrix,
|
|||
*/
|
||||
tx = m.x0;
|
||||
ty = m.y0;
|
||||
norm = fmax (fabs (tx), fabs (ty));
|
||||
norm = MAX (fabs (tx), fabs (ty));
|
||||
|
||||
for (i = -1; i < 2; i+=2) {
|
||||
for (j = -1; j < 2; j+=2) {
|
||||
|
|
@ -1149,7 +1149,7 @@ _cairo_matrix_to_pixman_matrix_offset (const cairo_matrix_t *matrix,
|
|||
x *= den;
|
||||
y *= den;
|
||||
|
||||
new_norm = fmax (fabs (x), fabs (y));
|
||||
new_norm = MAX (fabs (x), fabs (y));
|
||||
if (norm > new_norm) {
|
||||
norm = new_norm;
|
||||
tx = x;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue