summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-16 12:33:11 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-16 12:33:11 -0500
commit824c4ff4be5a0bf55b6644fed06fcfe2248c4301 (patch)
tree0eb56394e769e23005a9f03ffea0557c2577e542 /find.c
parent4bde24cb63313f636ac72b449f54d68515efe485 (diff)
started getting :build to work
Diffstat (limited to 'find.c')
-rw-r--r--find.c6
1 files changed, 1 insertions, 5 deletions
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;