summaryrefslogtreecommitdiffstats
path: root/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-05 23:59:21 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-05 23:59:21 +0200
commit6d3e1d835e1688fbc58622a03a784ed25ed3f0e1 (patch)
treeb1a14b0ec7b2da4368d5c98850fe9e9eebc5490a /renderer
parent4a356cfc16f3b45d64826732009d9feeac016b28 (diff)
downloadiced-6d3e1d835e1688fbc58622a03a784ed25ed3f0e1.tar.gz
iced-6d3e1d835e1688fbc58622a03a784ed25ed3f0e1.tar.bz2
iced-6d3e1d835e1688fbc58622a03a784ed25ed3f0e1.zip
Decouple caching from layering and simplify everything
Diffstat (limited to 'renderer')
-rw-r--r--renderer/src/fallback.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/renderer/src/fallback.rs b/renderer/src/fallback.rs
index b6459243..60b57604 100644
--- a/renderer/src/fallback.rs
+++ b/renderer/src/fallback.rs
@@ -405,7 +405,7 @@ where
#[cfg(feature = "geometry")]
mod geometry {
use super::Renderer;
- use crate::core::{Point, Radians, Size, Vector};
+ use crate::core::{Point, Radians, Rectangle, Size, Vector};
use crate::graphics::geometry::{self, Fill, Path, Stroke, Text};
use crate::graphics::Cached;
@@ -533,10 +533,10 @@ mod geometry {
delegate!(self, frame, frame.pop_transform());
}
- fn draft(&mut self, size: Size) -> Self {
+ fn draft(&mut self, bounds: Rectangle) -> Self {
match self {
- Self::Left(frame) => Self::Left(frame.draft(size)),
- Self::Right(frame) => Self::Right(frame.draft(size)),
+ Self::Left(frame) => Self::Left(frame.draft(bounds)),
+ Self::Right(frame) => Self::Right(frame.draft(bounds)),
}
}