From 5eccc2f5181ebbcefffd9d99f15cf2fae02f7432 Mon Sep 17 00:00:00 2001 From: nabijaczleweli Date: Tue, 11 Oct 2016 20:53:54 +0200 Subject: [PATCH] Fix inverted screen size in pancurses backend Closes #71 --- src/backend/curses/pan.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/curses/pan.rs b/src/backend/curses/pan.rs index d5ba397..65a026d 100644 --- a/src/backend/curses/pan.rs +++ b/src/backend/curses/pan.rs @@ -25,7 +25,7 @@ impl backend::Backend for Concrete { } 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) }