aboutsummaryrefslogtreecommitdiff
path: root/src/display
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-08-23 20:44:16 -0400
committerLibravatar Silas Bartha <[email protected]>2024-08-23 20:44:16 -0400
commite1eb0d99f17e6604e79496db68b191202cb95d60 (patch)
treef53923f555bbbb7ef8e6dd16a5526e53961e915f /src/display
parenta1648a10613a7cb80878bf8b83cd220e56723c48 (diff)
update dependenciesv0.4.3
Diffstat (limited to 'src/display')
-rw-r--r--src/display/systems.rs4
1 files changed, 2 insertions, 2 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");