Merge pull request #74 from nabijaczleweli/fix/71-inverted-screen-size-pancurses

Fix inverted screen size in pancurses backend
This commit is contained in:
Alexandre Bury 2016-10-11 11:57:39 -07:00 committed by GitHub
commit 9dd82117f4

View File

@ -25,7 +25,7 @@ impl backend::Backend for Concrete {
} }
fn screen_size(&self) -> (usize, usize) { fn screen_size(&self) -> (usize, usize) {
let (x, y) = self.window.get_max_yx(); let (y, x) = self.window.get_max_yx();
(x as usize, y as usize) (x as usize, y as usize)
} }