From b070e5ce01c829bd101b1e0eda49f1e25d9d125c Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 2 Nov 2022 13:29:09 -0400 Subject: new settings system bugfixes, use ted_active_settings more --- find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'find.c') diff --git a/find.c b/find.c index f85255c..5834c04 100644 --- a/find.c +++ b/find.c @@ -70,7 +70,7 @@ static void find_free_pattern(Ted *ted) { static float find_menu_height(Ted *ted) { Font *font = ted->font; float char_height = text_font_char_height(font); - Settings const *settings = ted->settings; + Settings const *settings = ted_active_settings(ted); float const padding = settings->padding; float const border_thickness = settings->border_thickness; float const line_buffer_height = ted_line_buffer_height(ted); @@ -315,7 +315,7 @@ static void find_menu_frame(Ted *ted, Rect menu_bounds) { Font *font = ted->font, *font_bold = ted->font_bold; float const char_height = text_font_char_height(font); - Settings const *settings = ted->settings; + Settings const *settings = ted_active_settings(ted); float const padding = settings->padding; float const border_thickness = settings->border_thickness; u32 const *colors = settings->colors; -- cgit v1.2.3