summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-06 17:36:07 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-06 17:36:07 -0500
commit132dcb648981050990e34a44925e6b54d0dc008c (patch)
tree7a41a97308b1921c62d2f5afd12c7cf475f14247 /math.c
parent9e055b2e25455fc4fa0376495ccc9335059f3131 (diff)
more open menu, border thickness setting, fixed small text clipping issue
Diffstat (limited to 'math.c')
-rw-r--r--math.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/math.c b/math.c
index d4adf73..c76e3cc 100644
--- a/math.c
+++ b/math.c
@@ -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