aboutsummaryrefslogtreecommitdiff
path: root/test/core.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-31 23:16:51 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-31 23:16:51 +0100
commit0509b26e573c7f23ab703b0e0e9bcec4caf87c2f (patch)
tree8aa6d4d345664bfaf37f54d6390c3eac862d0c2d /test/core.c
parentda1a508eb7f5a035fc4d0bbee09a522e828d8955 (diff)
downloadd2tk-0509b26e573c7f23ab703b0e0e9bcec4caf87c2f.tar.xz
core: add clock-wise flag to arc instruction.
Diffstat (limited to 'test/core.c')
-rw-r--r--test/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/core.c b/test/core.c
index 2320eaa..df59874 100644
--- a/test/core.c
+++ b/test/core.c
@@ -506,6 +506,7 @@ _test_rounded_rect()
#define ARC_R 5
#define ARC_A 30
#define ARC_B 60
+#define ARC_CW true
static void
_check_arc(const d2tk_com_t *com, const d2tk_clip_t *clip)
@@ -524,6 +525,7 @@ _check_arc(const d2tk_com_t *com, const d2tk_clip_t *clip)
assert(com->body->arc.r == ARC_R);
assert(com->body->arc.a == ARC_A);
assert(com->body->arc.b == ARC_B);
+ assert(com->body->arc.cw == ARC_CW);
}
static void
@@ -543,7 +545,7 @@ _test_arc()
&D2TK_RECT(CLIP_X, CLIP_Y, CLIP_W, CLIP_H));
assert(ref >= 0);
- d2tk_core_arc(core, ARC_X, ARC_Y, ARC_R, ARC_A, ARC_B);
+ d2tk_core_arc(core, ARC_X, ARC_Y, ARC_R, ARC_A, ARC_B, ARC_CW);
d2tk_core_bbox_pop(core, ref);
d2tk_core_post(core);
@@ -555,6 +557,7 @@ _test_arc()
#undef ARC_R
#undef ARC_A
#undef ARC_B
+#undef ARC_CW
#define CURVE_TO_X1 10
#define CURVE_TO_Y1 10