wlcs_anvil: Use buffer transformations
This commit is contained in:
parent
4b22624e74
commit
4161bc30ec
|
@ -5,7 +5,7 @@ use std::{
|
||||||
|
|
||||||
use smithay::{
|
use smithay::{
|
||||||
backend::{
|
backend::{
|
||||||
renderer::{Frame, Renderer, Transform},
|
renderer::{Frame, Renderer},
|
||||||
SwapBuffersError,
|
SwapBuffersError,
|
||||||
},
|
},
|
||||||
reexports::{
|
reexports::{
|
||||||
|
@ -18,7 +18,7 @@ use smithay::{
|
||||||
Client, Display,
|
Client, Display,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
utils::Rectangle,
|
utils::{Rectangle, Transform},
|
||||||
wayland::{
|
wayland::{
|
||||||
output::{Mode, PhysicalProperties},
|
output::{Mode, PhysicalProperties},
|
||||||
seat::CursorImageStatus,
|
seat::CursorImageStatus,
|
||||||
|
|
|
@ -3,11 +3,11 @@ use std::cell::Cell;
|
||||||
use smithay::{
|
use smithay::{
|
||||||
backend::{
|
backend::{
|
||||||
allocator::dmabuf::Dmabuf,
|
allocator::dmabuf::Dmabuf,
|
||||||
renderer::{Frame, ImportDma, ImportShm, Renderer, Texture, TextureFilter, Transform},
|
renderer::{Frame, ImportDma, ImportShm, Renderer, Texture, TextureFilter},
|
||||||
SwapBuffersError,
|
SwapBuffersError,
|
||||||
},
|
},
|
||||||
reexports::wayland_server::protocol::wl_buffer,
|
reexports::wayland_server::protocol::wl_buffer,
|
||||||
utils::{Buffer, Physical, Rectangle, Size},
|
utils::{Buffer, Physical, Rectangle, Size, Transform},
|
||||||
wayland::compositor::SurfaceData,
|
wayland::compositor::SurfaceData,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -106,7 +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>],
|
_damage: &[Rectangle<i32, Buffer>],
|
||||||
_src_transform: Transform,
|
_src_transform: Transform,
|
||||||
_alpha: f32,
|
_alpha: f32,
|
||||||
) -> Result<(), Self::Error> {
|
) -> Result<(), Self::Error> {
|
||||||
|
|
Loading…
Reference in New Issue