Skip to content

Commit

Permalink
#100 - Fix console inversion during resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
thebracket committed Mar 10, 2020
1 parent 8ee6ba5 commit e2c13f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bracket-terminal/src/simple_console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ impl Console for SimpleConsole {
for y in 0..i32::min(self.height as i32, height as i32) {
for x in 0..i32::min(self.width as i32, width as i32) {
let idx = self.at(x, y);
let new_idx = ((y * width as i32) + x) as usize;
let new_idx = (((height as i32 -1 - y) * width as i32) + x) as usize;
new_tiles[new_idx] = self.tiles[idx];
}
}
Expand Down

0 comments on commit e2c13f7

Please sign in to comment.