mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Fix window.c build without cairo-gl
This commit is contained in:
		
							parent
							
								
									0d8805ea18
								
							
						
					
					
						commit
						f8475c9366
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -536,8 +536,13 @@ display_get_pointer_surface(struct display *display, int pointer,
 | 
			
		|||
	cairo_surface_t *surface;
 | 
			
		||||
 | 
			
		||||
	surface = display->pointer_surfaces[pointer];
 | 
			
		||||
#if HAVE_CAIRO_GL
 | 
			
		||||
	*width = cairo_gl_surface_get_width(surface);
 | 
			
		||||
	*height = cairo_gl_surface_get_height(surface);
 | 
			
		||||
#else
 | 
			
		||||
	*width = cairo_image_surface_get_width(surface);
 | 
			
		||||
	*height = cairo_image_surface_get_height(surface);
 | 
			
		||||
#endif
 | 
			
		||||
	*hotspot_x = pointer_images[pointer].hotspot_x;
 | 
			
		||||
	*hotspot_y = pointer_images[pointer].hotspot_y;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue