mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Stop using wlr_texture_get_size
Just use wlr_texture.{width,height} directly.
			
			
This commit is contained in:
		
							parent
							
								
									ae5275c09f
								
							
						
					
					
						commit
						b9460ab724
					
				
					 5 changed files with 14 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -915,10 +915,8 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
 | 
			
		|||
 | 
			
		||||
	plane->cursor_enabled = false;
 | 
			
		||||
	if (texture != NULL) {
 | 
			
		||||
		int width, height;
 | 
			
		||||
		wlr_texture_get_size(texture, &width, &height);
 | 
			
		||||
		width = width * output->scale / scale;
 | 
			
		||||
		height = height * output->scale / scale;
 | 
			
		||||
		int width = texture->width * output->scale / scale;
 | 
			
		||||
		int height = texture->height * output->scale / scale;
 | 
			
		||||
 | 
			
		||||
		if (width > (int)plane->surf.width || height > (int)plane->surf.height) {
 | 
			
		||||
			wlr_drm_conn_log(conn, WLR_ERROR, "Cursor too large (max %dx%d)",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue