aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2017-08-30 16:51:54 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2017-08-30 16:51:54 +0200
commit2cf9afaa38e2feeb072eb9d2ec85ecb3f4052d1e (patch)
tree7e6606bc8aa2c26515eef621a2814be143c4fe71
parentacef0e39c3a30753792641dc4cb3aebe05eb7b21 (diff)
downloadnuk.lv2-2cf9afaa38e2feeb072eb9d2ec85ecb3f4052d1e.zip
nuk.lv2-2cf9afaa38e2feeb072eb9d2ec85ecb3f4052d1e.tar.gz
nuk.lv2-2cf9afaa38e2feeb072eb9d2ec85ecb3f4052d1e.tar.bz2
nuk.lv2-2cf9afaa38e2feeb072eb9d2ec85ecb3f4052d1e.tar.xz
Squashed 'nuklear/' changes from 12257a4..407126c
407126c fix NK_COMMAND_ARC/NK_COMMAND_ARC_FILLED. git-subtree-dir: nuklear git-subtree-split: 407126c8205df7695d05cf072b9a8a12152018b5
-rw-r--r--nuklear.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/nuklear.h b/nuklear.h
index b1f229e..a6d4536 100644
--- a/nuklear.h
+++ b/nuklear.h
@@ -7743,14 +7743,15 @@ nk_convert(struct nk_context *ctx, struct nk_buffer *cmds,
} break;
case NK_COMMAND_ARC: {
const struct nk_command_arc *c = (const struct nk_command_arc*)cmd;
- nk_draw_list_path_line_to(&ctx->draw_list, nk_vec2(c->cx, c->cy));
+ //nk_draw_list_path_line_to(&ctx->draw_list, nk_vec2(c->cx, c->cy));
nk_draw_list_path_arc_to(&ctx->draw_list, nk_vec2(c->cx, c->cy), c->r,
c->a[0], c->a[1], config->arc_segment_count);
- nk_draw_list_path_stroke(&ctx->draw_list, c->color, NK_STROKE_CLOSED, c->line_thickness);
+ //nk_draw_list_path_stroke(&ctx->draw_list, c->color, NK_STROKE_CLOSED, c->line_thickness);
+ nk_draw_list_path_stroke(&ctx->draw_list, c->color, NK_STROKE_OPEN, c->line_thickness);
} break;
case NK_COMMAND_ARC_FILLED: {
const struct nk_command_arc_filled *c = (const struct nk_command_arc_filled*)cmd;
- nk_draw_list_path_line_to(&ctx->draw_list, nk_vec2(c->cx, c->cy));
+ //nk_draw_list_path_line_to(&ctx->draw_list, nk_vec2(c->cx, c->cy));
nk_draw_list_path_arc_to(&ctx->draw_list, nk_vec2(c->cx, c->cy), c->r,
c->a[0], c->a[1], config->arc_segment_count);
nk_draw_list_path_fill(&ctx->draw_list, c->color);