mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
235f39e449
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
31 lines
751 B
C++
31 lines
751 B
C++
/*
|
|
* Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "NoVisualizationWidget.h"
|
|
#include <LibGUI/Painter.h>
|
|
|
|
NoVisualizationWidget::NoVisualizationWidget()
|
|
{
|
|
}
|
|
|
|
NoVisualizationWidget::~NoVisualizationWidget()
|
|
{
|
|
}
|
|
|
|
void NoVisualizationWidget::paint_event(GUI::PaintEvent& event)
|
|
{
|
|
Frame::paint_event(event);
|
|
GUI::Painter painter(*this);
|
|
|
|
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);
|
|
}
|
|
|
|
void NoVisualizationWidget::set_buffer(RefPtr<Audio::Buffer>)
|
|
{
|
|
}
|