aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-13 11:10:15 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-13 11:10:15 +0100
commitc9303e8a0c84b2dd1419c5bff06b65f42d0ad948 (patch)
treea44dfe5128751589b1499e6f37e046a4e1a98663
parent928cd5f2dd3285f3ead24734c7ef01a7f553f224 (diff)
downloadmidi_matrix.lv2-c9303e8a0c84b2dd1419c5bff06b65f42d0ad948.tar.xz
omk: fix group border.
-rw-r--r--nuklear.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/nuklear.h b/nuklear.h
index 67f4be3..4070dee 100644
--- a/nuklear.h
+++ b/nuklear.h
@@ -16914,24 +16914,9 @@ nk_panel_end(struct nk_context *ctx)
layout->bounds.y + layout->bounds.h + layout->footer_height:
window->bounds.y + window->bounds.h;
- /* draw border top */
- nk_stroke_line(out,window->bounds.x,window->bounds.y,
- window->bounds.x + window->bounds.w, window->bounds.y,
- layout->border, border_color);
-
- /* draw bottom border */
- nk_stroke_line(out, window->bounds.x, padding_y,
- window->bounds.x + window->bounds.w, padding_y, layout->border, border_color);
-
- /* draw left border */
- nk_stroke_line(out, window->bounds.x + layout->border*0.5f,
- window->bounds.y, window->bounds.x + layout->border*0.5f,
- padding_y, layout->border, border_color);
-
- /* draw right border */
- nk_stroke_line(out, window->bounds.x + window->bounds.w - layout->border*0.5f,
- window->bounds.y, window->bounds.x + window->bounds.w - layout->border*0.5f,
- padding_y, layout->border, border_color);
+ /* draw border rectangle */
+ nk_stroke_rect(out, nk_rect(window->bounds.x, window->bounds.y,
+ window->bounds.w - 2.f, padding_y - window->bounds.y), 0.f, layout->border, border_color);
}
/* scaler */