From 889afc2e793a7b56218cbf30934c7ee658671c4a Mon Sep 17 00:00:00 2001 From: Oldes Date: Fri, 18 Aug 2023 17:09:10 +0200 Subject: [PATCH] CHANGE: updated to Blend2D version 0.10.4 --- src/blend2d-command-draw-test.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/blend2d-command-draw-test.c b/src/blend2d-command-draw-test.c index c0e8aa0..e76889e 100644 --- a/src/blend2d-command-draw-test.c +++ b/src/blend2d-command-draw-test.c @@ -31,7 +31,7 @@ int cmd_draw_test(RXIFRM *frm, void *reb_ctx) { RXA_ARG(frm, 1).image = reb_img; blImageInit(&img); - r = blImageCreateFromData(&img, w, h, BL_FORMAT_PRGB32, reb_img->data, (intptr_t)w * 4, NULL, NULL); + r = blImageCreateFromData(&img, w, h, BL_FORMAT_PRGB32, reb_img->data, (intptr_t)w * 4, BL_DATA_ACCESS_WRITE, NULL, NULL); if (r != BL_SUCCESS) return r; r = blContextInitAs(&ctx, &img, NULL); @@ -41,9 +41,7 @@ int cmd_draw_test(RXIFRM *frm, void *reb_ctx) { BLGradientCore gradient; BLLinearGradientValues values = { 0, 0, 256, 256 }; - r = blGradientInitAs(&gradient, - BL_GRADIENT_TYPE_LINEAR, &values, - BL_EXTEND_MODE_PAD, NULL, 0, NULL); + r = blGradientInitAs(&gradient, BL_GRADIENT_TYPE_LINEAR, &values, BL_EXTEND_MODE_PAD, NULL, 0, NULL); if (r != BL_SUCCESS) return 1; blGradientAddStopRgba32(&gradient, 0.0, 0xFFFFFFFFu); @@ -54,11 +52,6 @@ int cmd_draw_test(RXIFRM *frm, void *reb_ctx) { blContextFillAll(&ctx); blGradientReset(&gradient); - BLCircle circle; - circle.cx = 128; - circle.cy = 128; - circle.r = 64; - end_ctx: