summaryrefslogtreecommitdiffstatsci
path: root/tests/compositing.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compositing.c')
-rw-r--r--tests/compositing.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/tests/compositing.c b/tests/compositing.c
index 56e3d45..df193a7 100644
--- a/tests/compositing.c
+++ b/tests/compositing.c
@@ -1,24 +1,22 @@
#include "test.h"
-void test(){
- vkvg_surface_clear(surf);
+void compositing(){
+ vkvg_surface_clear(surf);
- VkvgContext ctx = vkvg_create(surf);
+ VkvgContext ctx = vkvg_create(surf);
- vkvg_set_source_rgba(ctx, 1,0,0,0.5);
- vkvg_rectangle(ctx,100,100,200,200);
- vkvg_fill(ctx);
+ vkvg_set_source_rgba(ctx, 1,0,0,0.5f);
+ vkvg_rectangle(ctx,100,100,200,200);
+ vkvg_fill(ctx);
- vkvg_set_source_rgba(ctx, 0,0,1,0.5);
- vkvg_rectangle(ctx,200,200,200,200);
- vkvg_fill(ctx);
+ vkvg_set_source_rgba(ctx, 0,0,1,0.5f);
+ vkvg_rectangle(ctx,200,200,200,200);
+ vkvg_fill(ctx);
- vkvg_destroy(ctx);
+ vkvg_destroy(ctx);
}
int main(int argc, char *argv[]) {
-
- perform_test (test, 600, 800);
-
- return 0;
+ PERFORM_TEST (compositing, argc, argv);
+ return 0;
}