diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-06 17:36:07 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-06 17:36:07 -0500 |
commit | 132dcb648981050990e34a44925e6b54d0dc008c (patch) | |
tree | 7a41a97308b1921c62d2f5afd12c7cf475f14247 /math.c | |
parent | 9e055b2e25455fc4fa0376495ccc9335059f3131 (diff) |
more open menu, border thickness setting, fixed small text clipping issue
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -655,7 +655,8 @@ static void rect_render(Rect r) { glVertex2f(x1, y2); } -static void rect_render_border(Rect r, float border_radius) { +static void rect_render_border(Rect r, float border_thickness) { + float border_radius = border_thickness * 0.5f; float x1 = r.pos.x, y1 = r.pos.y, x2 = x1 + r.size.x, y2 = y1 + r.size.y; //float a = 0.3f; // for debugging |