From 824c4ff4be5a0bf55b6644fed06fcfe2248c4301 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Tue, 16 Feb 2021 12:33:11 -0500 Subject: started getting :build to work --- find.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'find.c') diff --git a/find.c b/find.c index 31eb898..2612577 100644 --- a/find.c +++ b/find.c @@ -292,15 +292,13 @@ static void find_replace_all(Ted *ted) { } } -static void find_menu_frame(Ted *ted) { +static void find_menu_frame(Ted *ted, float x1, float y1, float x2, float y2) { Font *font = ted->font, *font_bold = ted->font_bold; float const char_height = text_font_char_height(font), char_height_bold = text_font_char_height(font_bold); Settings const *settings = &ted->settings; float const padding = settings->padding; - float const menu_height = find_menu_height(ted); - float const window_width = ted->window_width, window_height = ted->window_height; u32 const *colors = settings->colors; bool const replace = ted->replace; @@ -311,8 +309,6 @@ static void find_menu_frame(Ted *ted) { u32 last_rendered_line = buffer_last_rendered_line(buffer); - float x1 = padding, y1 = window_height - menu_height + padding, x2 = window_width - padding, y2 = window_height - padding; - Rect menu_bounds = rect4(x1, y1, x2, y2); x1 += padding; -- cgit v1.2.3