aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-13 11:12:43 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-13 11:12:43 +0100
commiteb5c8bcef2d16ab942cb8da38bfa692b1d176a61 (patch)
tree821f63dcd27327c4351bf4d96c81b20e6840cdca
parent7b7610f8ef31ed977aa16b70505325e9b33528b7 (diff)
parentc9303e8a0c84b2dd1419c5bff06b65f42d0ad948 (diff)
downloadmidi_matrix.lv2-eb5c8bcef2d16ab942cb8da38bfa692b1d176a61.tar.xz
Merge commit 'c9303e8a0c84b2dd1419c5bff06b65f42d0ad948'
-rw-r--r--nuklear/nuklear.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/nuklear/nuklear.h b/nuklear/nuklear.h
index 67f4be3..4070dee 100644
--- a/nuklear/nuklear.h
+++ b/nuklear/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 */