From 18572a6eff681bdcf943c35a0ef675752326e02f Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Sun, 9 Jan 2022 09:21:48 -0500 Subject: [PATCH] Fix bug where images weren't rendered until image is resized --- src/editor.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/editor.rs b/src/editor.rs index c25c3c9..1bff14b 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -49,12 +49,16 @@ impl Editor { let (controls, cmd) = Controls::new(song); - (Self { + let mut editor = Self { lyrics: Lyrics::new(), dimensions: size, cached_resized_bg: None, controls, theme, bg_img, - }, cmd) + }; + + editor.notify_resized(size.0, size.1); + + (editor, cmd) } // TODO: work on untangling this mess