mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-08-07 22:17:07 +02:00
parent
ca049bff2b
commit
8b24b052ca
1 changed files with 1 additions and 1 deletions
|
|
@ -295,7 +295,7 @@ impl_draw!(<T: Screen, I: Draw<T>, X: Into<Option<T::Unit>>,>|self: Max<T, I, X>
|
||||||
)),
|
)),
|
||||||
Self::WH(item, max_w, max_h) => (item, XYWH(
|
Self::WH(item, max_w, max_h) => (item, XYWH(
|
||||||
area.0, area.1, max_w.into().map(|max|max.min(area.2)).unwrap_or(area.2),
|
area.0, area.1, max_w.into().map(|max|max.min(area.2)).unwrap_or(area.2),
|
||||||
max_h.into().map(|max|max.min(area.3)).unwrap_or(area.3)
|
max_h.into().map(|max|max.min(area.3)).unwrap_or(area.3),
|
||||||
)),
|
)),
|
||||||
_ => return Ok(None)
|
_ => return Ok(None)
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue