aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/display/systems.rs4
-rw-r--r--src/lib.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/display/systems.rs b/src/display/systems.rs
index 9f8acb9..120272b 100644
--- a/src/display/systems.rs
+++ b/src/display/systems.rs
@@ -74,7 +74,7 @@ pub fn print_to_terminal(
.white()
.bold()
.wrap(Wrap { trim: true }),
- frame.size(),
+ frame.area(),
);
let mut active_widgets = widgets
@@ -83,7 +83,7 @@ pub fn print_to_terminal(
.collect::<Vec<_>>();
active_widgets.sort_by(|a, b| a.depth.cmp(&b.depth));
for mut widget in active_widgets {
- widget.widget.render(frame, frame.size());
+ widget.widget.render(frame, frame.area());
}
})
.expect("Failed to draw terminal frame");
diff --git a/src/lib.rs b/src/lib.rs
index 682fca2..09134f9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -17,7 +17,7 @@ use bevy_dither_post_process::DitherPostProcessPlugin;
use bevy_headless_render::HeadlessRenderPlugin;
use color_eyre::config::HookBuilder;
pub use crossterm;
-use crossterm::{event::{DisableMouseCapture, PopKeyboardEnhancementFlags}, terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, ExecutableCommand};
+use crossterm::{event::{DisableMouseCapture, PopKeyboardEnhancementFlags}, terminal::{disable_raw_mode, LeaveAlternateScreen}, ExecutableCommand};
use once_cell::sync::Lazy;
pub use ratatui;