summaryrefslogtreecommitdiff
path: root/ide-rename-symbol.c
diff options
context:
space:
mode:
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);