aboutsummaryrefslogtreecommitdiff
path: root/test/core.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-02 21:48:04 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-02 21:48:04 +0100
commitaca3e674cab6672d0b307816baf56fa0fbafe4ae (patch)
tree25dde51c2ec3f2ce73beef36bfd3deda1ce59886 /test/core.c
parent06ec95490b9b181fbdfbb395dba4347263a2f4bc (diff)
downloadd2tk-aca3e674cab6672d0b307816baf56fa0fbafe4ae.tar.xz
all: finalize linear gradient, meter.
Diffstat (limited to 'test/core.c')
-rw-r--r--test/core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core.c b/test/core.c
index 93d3c77..2aa3e1e 100644
--- a/test/core.c
+++ b/test/core.c
@@ -561,10 +561,10 @@ _check_linear_gradient(const d2tk_com_t *com, const d2tk_clip_t *clip)
assert(com->size == sizeof(d2tk_body_linear_gradient_t));
assert(com->instr == D2TK_INSTR_LINEAR_GRADIENT);
- assert(com->body->linear_gradient.p[0].x == LINEAR_GRADIENT_X_0);
- assert(com->body->linear_gradient.p[0].y == LINEAR_GRADIENT_Y_0);
- assert(com->body->linear_gradient.p[1].x == LINEAR_GRADIENT_X_1);
- assert(com->body->linear_gradient.p[1].y == LINEAR_GRADIENT_Y_1);
+ assert(com->body->linear_gradient.p[0].x == LINEAR_GRADIENT_X_0 - CLIP_X);
+ assert(com->body->linear_gradient.p[0].y == LINEAR_GRADIENT_Y_0 - CLIP_Y);
+ assert(com->body->linear_gradient.p[1].x == LINEAR_GRADIENT_X_1 - CLIP_X);
+ assert(com->body->linear_gradient.p[1].y == LINEAR_GRADIENT_Y_1 - CLIP_Y);
assert(com->body->linear_gradient.rgba[0] == LINEAR_GRADIENT_RGBA_0);
assert(com->body->linear_gradient.rgba[1] == LINEAR_GRADIENT_RGBA_1);
}