mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-01 23:51:46 -04:00
Update deps (specifically the forks of ratatui and ratatui-image)
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ impl Widget for Skip {
|
||||
fn render(self, area: ratatui::prelude::Rect, buf: &mut ratatui::prelude::Buffer) {
|
||||
for x in area.x..(area.x + area.width) {
|
||||
for y in area.y..(area.y + area.height) {
|
||||
buf.get_mut(x, y).skip = self.skip;
|
||||
buf[(x, y)].skip = self.skip;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -84,7 +84,7 @@ impl Tui {
|
||||
])
|
||||
.horizontal_margin(2)
|
||||
.vertical_margin(1)
|
||||
.split(frame.size())
|
||||
.split(frame.area())
|
||||
}
|
||||
|
||||
// TODO: Make a way to fill the width of the screen with one page and scroll down to view it
|
||||
@@ -185,7 +185,7 @@ impl Tui {
|
||||
|
||||
let mut img_area = main_area[1];
|
||||
|
||||
let size = frame.size();
|
||||
let size = frame.area();
|
||||
if size == self.last_render.rect {
|
||||
// If we haven't resized (and haven't used the Rect as a way to mark that we need to
|
||||
// resize this time), then go through every element in the buffer where any Image would
|
||||
|
||||
Reference in New Issue
Block a user