summaryrefslogtreecommitdiff
path: root/src/ui_elements/UI.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui_elements/UI.c')
-rw-r--r--src/ui_elements/UI.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui_elements/UI.c b/src/ui_elements/UI.c
index 9daed74..9f17826 100644
--- a/src/ui_elements/UI.c
+++ b/src/ui_elements/UI.c
@@ -6,8 +6,8 @@ const int MAX_LINES = 8192;
const int SPACING_H = 1;
void DrawRecBordered(Rectangle rec, Color bg, Color border_color, int border_width) {
- DrawRectangleRounded(rec, 0.015f, 8, bg);
- DrawRectangleRoundedLinesEx(rec, 0.015f, 8, border_width, border_color);
+ DrawRectangleRounded(rec, ROUNDNESS, ROUNDNESS_SEGMENTS, bg);
+ DrawRectangleRoundedLinesEx(rec, ROUNDNESS, ROUNDNESS_SEGMENTS, border_width, border_color);
}
float MeasureChar(Font *font, int height, char symbol) {
@@ -126,7 +126,7 @@ void DrawPageView(int y, unsigned int pages, unsigned int current_page) {
.b = COLORSCHEME_WHITE.b,
.a = COLORSCHEME_WHITE.a & PAGE_DOTS_TRANSPARENCY };
- DrawRectangleRounded(rec, 0.15f, 8, color);
+ DrawRectangleRounded(rec, ROUNDNESS, ROUNDNESS_SEGMENTS, color);
int x_pos = (int)rec.x + PAGE_DOTS_PADDING + PAGE_DOTS_RADIUS;
int y_pos = (int)rec.y + PAGE_DOTS_PADDING + PAGE_DOTS_RADIUS;