mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Draw terminal cursor.
This commit is contained in:
		
							parent
							
								
									0de19eb688
								
							
						
					
					
						commit
						b0b82e2eeb
					
				
					 1 changed files with 9 additions and 3 deletions
				
			
		
							
								
								
									
										12
									
								
								terminal.c
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								terminal.c
									
										
									
									
									
								
							| 
						 | 
					@ -157,6 +157,15 @@ terminal_draw_contents(struct terminal *terminal)
 | 
				
			||||||
			      top_margin + extents.ascent + extents.height * i);
 | 
								      top_margin + extents.ascent + extents.height * i);
 | 
				
			||||||
		cairo_show_text(cr, terminal_get_row(terminal, i));
 | 
							cairo_show_text(cr, terminal_get_row(terminal, i));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cairo_move_to(cr, side_margin + terminal->column * extents.max_x_advance,
 | 
				
			||||||
 | 
							      top_margin + terminal->row * extents.height);
 | 
				
			||||||
 | 
						cairo_rel_line_to(cr, extents.max_x_advance, 0);
 | 
				
			||||||
 | 
						cairo_rel_line_to(cr, 0, extents.height);
 | 
				
			||||||
 | 
						cairo_rel_line_to(cr, -extents.max_x_advance, 0);
 | 
				
			||||||
 | 
						cairo_close_path(cr);
 | 
				
			||||||
 | 
						cairo_fill(cr);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cairo_destroy(cr);
 | 
						cairo_destroy(cr);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	window_copy_surface(terminal->window,
 | 
						window_copy_surface(terminal->window,
 | 
				
			||||||
| 
						 | 
					@ -227,9 +236,6 @@ terminal_schedule_redraw(struct terminal *terminal)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					 | 
				
			||||||
terminal_data(struct terminal *terminal, const char *data, size_t length);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
handle_escape(struct terminal *terminal)
 | 
					handle_escape(struct terminal *terminal)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue