summaryrefslogtreecommitdiff
path: root/Userland/Applications/SoundPlayer/NoVisualizationWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/SoundPlayer/NoVisualizationWidget.cpp')
-rw-r--r--Userland/Applications/SoundPlayer/NoVisualizationWidget.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Applications/SoundPlayer/NoVisualizationWidget.cpp b/Userland/Applications/SoundPlayer/NoVisualizationWidget.cpp
index 04326d0e73..e7a5510ccd 100644
--- a/Userland/Applications/SoundPlayer/NoVisualizationWidget.cpp
+++ b/Userland/Applications/SoundPlayer/NoVisualizationWidget.cpp
@@ -20,11 +20,9 @@ void NoVisualizationWidget::paint_event(GUI::PaintEvent& event)
Frame::paint_event(event);
GUI::Painter painter(*this);
- if (m_serenity_bg.is_null()) {
- m_serenity_bg = Gfx::Bitmap::try_load_from_file("/res/wallpapers/sunset-retro.png");
- }
+ if (!m_serenity_bg)
+ m_serenity_bg = Gfx::Bitmap::try_load_from_file("/res/wallpapers/sunset-retro.png").release_value_but_fixme_should_propagate_errors();
painter.draw_scaled_bitmap(frame_inner_rect(), *m_serenity_bg, m_serenity_bg->rect(), 1.0f);
- return;
}
void NoVisualizationWidget::set_buffer(RefPtr<Audio::Buffer>)