summaryrefslogtreecommitdiff
path: root/ide-rename-symbol.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-06 14:07:53 -0400
committerpommicket <pommicket@gmail.com>2023-08-06 14:07:53 -0400
commit52da64686fb506372fa09ab562915f895cd88cb9 (patch)
tree24c2ca40227ddc0ad92adced2432930d4beed729 /ide-rename-symbol.c
parentb4e2b3d2407cbad54169da707f72595246e4794a (diff)
util cleanup
Diffstat (limited to 'ide-rename-symbol.c')
-rw-r--r--ide-rename-symbol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide-rename-symbol.c b/ide-rename-symbol.c
index 7d1e2ad..6f320ae 100644
--- a/ide-rename-symbol.c
+++ b/ide-rename-symbol.c
@@ -98,10 +98,10 @@ static void rename_symbol_menu_render(Ted *ted) {
gl_geometry_rect(bounds, colors[COLOR_MENU_BG]);
gl_geometry_rect_border(bounds, settings->border_thickness, colors[COLOR_BORDER]);
gl_geometry_draw();
- bounds = rect_shrink(bounds, padding);
+ rect_shrink(&bounds, padding);
const char *text = "Rename symbol to...";
text_utf8(ted->font_bold, text, bounds.pos.x, bounds.pos.y, colors[COLOR_TEXT]);
- bounds = rect_shrink_left(bounds, text_get_size_vec2(ted->font_bold, text).x + padding);
+ rect_shrink_left(&bounds, text_get_size_vec2(ted->font_bold, text).x + padding);
text_render(ted->font_bold);
buffer_render(&ted->line_buffer, bounds);