Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Oct 15, 2024
1 parent 19e7cad commit d6ac23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub fn run<I: BufRead, O: Write + Send>(input: I, output: O, config: Config) ->
let events = events::batch(events, config.fps_cap);
let events = events.collect::<Vec<_>>();
let count = events.len() as u64;
let events = vt::frames(events.into_iter(), terminal_size);
let frames = vt::frames(events.into_iter(), terminal_size);

info!("terminal size: {}x{}", terminal_size.0, terminal_size.1);

Expand Down Expand Up @@ -202,7 +202,7 @@ pub fn run<I: BufRead, O: Write + Send>(input: I, output: O, config: Config) ->
}
});

for (i, (time, lines, cursor)) in events.enumerate() {
for (i, (time, lines, cursor)) in frames.enumerate() {
let image = renderer.render(lines, cursor);
let time = if i == 0 { 0.0 } else { time };
collector.add_frame_rgba(i, image, time + config.last_frame_duration)?;
Expand Down

0 comments on commit d6ac23f

Please sign in to comment.