stacking: header

This commit is contained in:
Victoria Brekenfeld 2023-06-08 13:19:30 +02:00
parent b3401eb18a
commit e73ebd4413
13 changed files with 686 additions and 123 deletions

View file

@ -101,8 +101,9 @@ pub trait Program {
&self,
pixels: &mut tiny_skia::PixmapMut<'_>,
damage: &[Rectangle<i32, BufferCoords>],
scale: f32,
) {
let _ = (pixels, damage);
let _ = (pixels, damage, scale);
}
}
@ -563,6 +564,7 @@ impl<P: Program + Send + 'static> SpaceElement for IcedElement<P> {
),
);
}
internal.update(true);
}
}
@ -650,7 +652,10 @@ where
})
.collect::<Vec<_>>();
state_ref.program().0.foreground(&mut pixels, &damage);
state_ref
.program()
.0
.foreground(&mut pixels, &damage, scale.x as f32);
Result::<_, ()>::Ok(damage)
})