wlcs_anvil: Update to new api
This commit is contained in:
parent
165e889473
commit
66eb0562df
|
@ -18,6 +18,7 @@ use smithay::{
|
||||||
Client, Display,
|
Client, Display,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
utils::Rectangle,
|
||||||
wayland::{
|
wayland::{
|
||||||
output::{Mode, PhysicalProperties},
|
output::{Mode, PhysicalProperties},
|
||||||
seat::CursorImageStatus,
|
seat::CursorImageStatus,
|
||||||
|
@ -103,7 +104,10 @@ pub fn run(channel: Channel<WlcsEvent>) {
|
||||||
|
|
||||||
renderer
|
renderer
|
||||||
.render((800, 600).into(), Transform::Normal, |renderer, frame| {
|
.render((800, 600).into(), Transform::Normal, |renderer, frame| {
|
||||||
frame.clear([0.8, 0.8, 0.9, 1.0])?;
|
frame.clear(
|
||||||
|
[0.8, 0.8, 0.9, 1.0],
|
||||||
|
&[Rectangle::from_loc_and_size((0, 0), (800, 600))],
|
||||||
|
)?;
|
||||||
|
|
||||||
// draw the windows
|
// draw the windows
|
||||||
draw_windows(
|
draw_windows(
|
||||||
|
|
|
@ -97,7 +97,7 @@ impl Frame for DummyFrame {
|
||||||
type Error = SwapBuffersError;
|
type Error = SwapBuffersError;
|
||||||
type TextureId = DummyTexture;
|
type TextureId = DummyTexture;
|
||||||
|
|
||||||
fn clear(&mut self, _color: [f32; 4]) -> Result<(), Self::Error> {
|
fn clear(&mut self, _color: [f32; 4], _damage: &[Rectangle<i32, Physical>]) -> Result<(), Self::Error> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,6 +106,7 @@ impl Frame for DummyFrame {
|
||||||
_texture: &Self::TextureId,
|
_texture: &Self::TextureId,
|
||||||
_src: Rectangle<i32, Buffer>,
|
_src: Rectangle<i32, Buffer>,
|
||||||
_dst: Rectangle<f64, Physical>,
|
_dst: Rectangle<f64, Physical>,
|
||||||
|
_damage: &[Rectangle<i32, Physical>],
|
||||||
_src_transform: Transform,
|
_src_transform: Transform,
|
||||||
_alpha: f32,
|
_alpha: f32,
|
||||||
) -> Result<(), Self::Error> {
|
) -> Result<(), Self::Error> {
|
||||||
|
|
Loading…
Reference in New Issue