[cairo-commit] test/path-precision.c
Jeff Muizelaar
jrmuizel at kemper.freedesktop.org
Mon Feb 9 13:00:43 PST 2009
test/path-precision.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
New commits:
commit a6c8f18a391407044b33340cf13c49368a2e810e
Author: Jeff Muizelaar <jmuizelaar at mozilla.com>
Date: Mon Feb 9 15:59:01 2009 -0500
[test] Avoid C99 designated initializers
MSVC doesn't support these so we shouldn't use them.
diff --git a/test/path-precision.c b/test/path-precision.c
index 447b7a2..b537102 100644
--- a/test/path-precision.c
+++ b/test/path-precision.c
@@ -33,20 +33,20 @@ static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
cairo_path_data_t path_data[] = {
- { .header = { CAIRO_PATH_MOVE_TO, 2 }, },
- { .point = { 95.000000, 40.000000 }, },
+ { { CAIRO_PATH_MOVE_TO, 2 }, },
+ { { 95.000000, 40.000000 }, },
- { .header = { CAIRO_PATH_LINE_TO, 2 }, },
- { .point = { 94.960533, 41.255810 }, },
+ { { CAIRO_PATH_LINE_TO, 2 }, },
+ { { 94.960533, 41.255810 }, },
- { .header = { CAIRO_PATH_LINE_TO, 2 }, },
- { .point = { 94.842293, 42.50666 }, },
+ { { CAIRO_PATH_LINE_TO, 2 }, },
+ { { 94.842293, 42.50666 }, },
- { .header = { CAIRO_PATH_LINE_TO, 2 }, },
- { .point = { 94.645744, 43.747627 }, },
+ { { CAIRO_PATH_LINE_TO, 2 }, },
+ { { 94.645744, 43.747627 }, },
- { .header = { CAIRO_PATH_LINE_TO, 2 }, },
- { .point = { 94.371666, 44.973797 }, },
+ { { CAIRO_PATH_LINE_TO, 2 }, },
+ { { 94.371666, 44.973797 }, },
};
const cairo_test_context_t *ctx = cairo_test_get_context (cr);
cairo_path_t path, *path_copy;
More information about the cairo-commit
mailing list