blob: 04326d0e7347cd6e5504b0c2906d8acf23c7509a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* 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::try_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>)
{
}
|