mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix anti-aliasing
This commit is contained in:
		
							parent
							
								
									74d1367fac
								
							
						
					
					
						commit
						8f06aa7598
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -582,6 +582,10 @@ static void update_title_texture(struct sway_container *con,
 | 
				
			||||||
	cairo_surface_t *surface = cairo_image_surface_create(
 | 
						cairo_surface_t *surface = cairo_image_surface_create(
 | 
				
			||||||
			CAIRO_FORMAT_ARGB32, width, height);
 | 
								CAIRO_FORMAT_ARGB32, width, height);
 | 
				
			||||||
	cairo_t *cairo = cairo_create(surface);
 | 
						cairo_t *cairo = cairo_create(surface);
 | 
				
			||||||
 | 
						cairo_set_source_rgba(cairo, class->background[0], class->background[1],
 | 
				
			||||||
 | 
								class->background[2], class->background[3]);
 | 
				
			||||||
 | 
						cairo_paint(cairo);
 | 
				
			||||||
 | 
						cairo_set_antialias(cairo, CAIRO_ANTIALIAS_BEST);
 | 
				
			||||||
	PangoContext *pango = pango_cairo_create_context(cairo);
 | 
						PangoContext *pango = pango_cairo_create_context(cairo);
 | 
				
			||||||
	cairo_set_source_u32(cairo, class->text);
 | 
						cairo_set_source_u32(cairo, class->text);
 | 
				
			||||||
	cairo_move_to(cairo, 0, 0);
 | 
						cairo_move_to(cairo, 0, 0);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue