diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-17 08:32:29 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-17 08:37:38 +0100 |
commit | 0ac81988c199df1a6652dc0ea72627122bf95c6c (patch) | |
tree | 08f15cd3f007d1586b4495586ed6330b84964fb0 | |
parent | 9c75065ecefe18557c9d56e1c973215f01f3cd40 (diff) |
test/pixman-downscale: Open-code fmin()
fmin() requires a bump to either _XOPEN_SOURCE_ >= 600 (POSIX 2004) or
c99 - which is a needless dependency for a single simple routine.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | test/pixman-downscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pixman-downscale.c b/test/pixman-downscale.c index 621a5b9..60e9618 100644 --- a/test/pixman-downscale.c +++ b/test/pixman-downscale.c @@ -51,7 +51,7 @@ draw (cairo_t *cr, int width, int height, cairo_filter_t filter) image = cairo_test_create_surface_from_png (ctx, png_filename); x_scale = width * 1.0 / cairo_image_surface_get_width (image); y_scale = height * 1.0 / cairo_image_surface_get_height (image); - scale = fmin(x_scale, y_scale); + scale = x_scale < y_scale ? x_scale : y_scale; cairo_save (cr); cairo_scale (cr, scale, scale); |