mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-10 02:26:29 +00:00
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
24 lines
696 B
C++
24 lines
696 B
C++
/*
|
|
* Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com>
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "NoVisualizationWidget.h"
|
|
#include <LibGUI/Painter.h>
|
|
|
|
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>)
|
|
{
|
|
}
|