1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 03:14:58 +00:00
serenity/Userland/Applications/SoundPlayer/NoVisualizationWidget.cpp
Brian Gianforcaro 1682f0b760 Everything: Move to SPDX license identifiers in all files.
SPDX License Identifiers are a more compact / standardized
way of representing file license information.

See: https://spdx.dev/resources/use/#identifiers

This was done with the `ambr` search and replace tool.

 ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00

32 lines
726 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.is_null()) {
m_serenity_bg = Gfx::Bitmap::load_from_file("/res/wallpapers/sunset-retro.png");
}
painter.draw_scaled_bitmap(frame_inner_rect(), *m_serenity_bg, m_serenity_bg->rect(), 1.0f);
return;
}
void NoVisualizationWidget::set_buffer(RefPtr<Audio::Buffer>)
{
}