mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	WindowServer: Add WSClientConnection::create_bitmap().
There we go. Now WSWindow doesn't know about Process at all.
This commit is contained in:
		
							parent
							
								
									9ab9734da0
								
							
						
					
					
						commit
						5d30c6b00c
					
				
					 3 changed files with 13 additions and 12 deletions
				
			
		|  | @ -65,6 +65,13 @@ void WSClientConnection::post_message(GUI_ServerMessage&& message) | |||
|     m_process->gui_events().append(move(message)); | ||||
| } | ||||
| 
 | ||||
| RetainPtr<GraphicsBitmap> WSClientConnection::create_bitmap(const Size& size) | ||||
| { | ||||
|     if (!m_process) | ||||
|         return nullptr; | ||||
|     return GraphicsBitmap::create(*m_process, size); | ||||
| } | ||||
| 
 | ||||
| void WSClientConnection::on_message(WSMessage& message) | ||||
| { | ||||
|     if (message.is_client_request()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling