Redesign iced_wgpu layering architecture
This commit is contained in:
parent
99a904112c
commit
b05e61f5c8
36 changed files with 2781 additions and 2048 deletions
|
|
@ -651,7 +651,7 @@ where
|
|||
defaults: &renderer::Style,
|
||||
layout: Layout<'_>,
|
||||
cursor: mouse::Cursor,
|
||||
_viewport: &Rectangle,
|
||||
viewport: &Rectangle,
|
||||
) {
|
||||
let state = tree.state.downcast_ref::<State>();
|
||||
|
||||
|
|
@ -767,8 +767,8 @@ where
|
|||
|
||||
renderer.with_layer(
|
||||
Rectangle {
|
||||
width: bounds.width + 2.0,
|
||||
height: bounds.height + 2.0,
|
||||
width: (bounds.width + 2.0).min(viewport.width),
|
||||
height: (bounds.height + 2.0).min(viewport.height),
|
||||
..bounds
|
||||
},
|
||||
|renderer| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue