Skip to content

Commit

Permalink
CHANGE: updated to Blend2D version 0.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Aug 18, 2023
1 parent e2bcf80 commit 889afc2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/blend2d-command-draw-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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:

Expand Down

0 comments on commit 889afc2

Please sign in to comment.