From dd286e9f696ebd631af45bca82ca458aafd21728 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 11 Feb 2020 15:02:55 +0100 Subject: platform work --- src/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index d0c1a7c..73fa855 100644 --- a/src/ui.c +++ b/src/ui.c @@ -269,7 +269,7 @@ void ui_push_vertical_dragbar() s32 y = global_ui_context.layout.offset_y + global_ui_context.camera->y - WIDGET_PADDING; s32 h = global_ui_context.layout.height; - render_rectangle(x, y, 5, h, global_ui_context.style.border); + render_rectangle(x, y, 2, h, global_ui_context.style.border); } inline void ui_push_menu_item_separator() @@ -391,7 +391,7 @@ bool ui_push_dropdown_item(image *icon, char *title, s32 index) if (icon) { render_image(icon, x+(BUTTON_HORIZONTAL_TEXT_PADDING/2), - y + (h - (h-10))/2, h-10, h-10); + y + (h - (h-6))/2, h-6, h-6); text_x += h-10; } render_text(global_ui_context.font_small, text_x+(BUTTON_HORIZONTAL_TEXT_PADDING/2)-5, text_y, title, global_ui_context.style.foreground); -- cgit v1.2.3-70-g09d2