wlcs_anvil: Use buffer transformations

This commit is contained in:
Victoria Brekenfeld 2022-01-17 13:52:07 +01:00
parent 4b22624e74
commit 4161bc30ec
2 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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> {