Fix inverted screen size in pancurses backend

Closes #71
This commit is contained in:
nabijaczleweli 2016-10-11 20:53:54 +02:00
parent 04f528e2de
commit 5eccc2f518
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

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)
} }