slightly better rendering

macos-click-through
keith 4 years ago
parent a7d82fb7a1
commit 15d02a0417

@ -231,7 +231,7 @@ impl Window {
// Build up the actual text to be rendered including the contiguously styled bits. // Build up the actual text to be rendered including the contiguously styled bits.
let mut text = String::new(); let mut text = String::new();
for x in draw_command_start_index..draw_command_end_index { for x in draw_command_start_index..(draw_command_end_index + 1) {
let (character, _) = row[x as usize].as_ref().unwrap(); let (character, _) = row[x as usize].as_ref().unwrap();
text.push_str(character); text.push_str(character);
} }
@ -270,7 +270,6 @@ impl Window {
let mut current_start = column_start; let mut current_start = column_start;
while current_start < column_pos { while current_start < column_pos {
println!("{}", current_start);
if let Some(next_start) = self.send_draw_command(row, column_start, current_start) { if let Some(next_start) = self.send_draw_command(row, column_start, current_start) {
current_start = next_start; current_start = next_start;
} else { } else {

@ -219,8 +219,6 @@ impl RenderedWindow {
} => { } => {
let grid_position = (window_left, window_top); let grid_position = (window_left, window_top);
// println!("{} left: {} top: {}", text, window_left, window_top);
{ {
let mut background_canvas = self.background_surface.canvas(); let mut background_canvas = self.background_surface.canvas();
renderer.draw_background( renderer.draw_background(

Loading…
Cancel
Save