mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	 1682f0b760
			
		
	
	
		1682f0b760
		
	
	
	
	
		
			
			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 *
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			726 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			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>)
 | |
| {
 | |
| }
 |