diff --git a/src/backend/render/cursor.rs b/src/backend/render/cursor.rs index 0c1e2384..a1aef27b 100644 --- a/src/backend/render/cursor.rs +++ b/src/backend/render/cursor.rs @@ -127,14 +127,13 @@ render_elements! { pub fn draw_surface_cursor( renderer: &mut R, surface: &wl_surface::WlSurface, - location: impl Into>, + location: Point, scale: impl Into>, ) -> Vec<(CursorRenderElement, Point)> where R: Renderer + ImportAll, R::TextureId: Clone + 'static, { - let position = location.into(); let scale = scale.into(); let h = with_states(&surface, |states| { states @@ -150,7 +149,7 @@ where render_elements_from_surface_tree( renderer, surface, - position.to_physical_precise_round(scale), + location.to_physical(scale).to_i32_round(), scale, 1.0, Kind::Cursor, @@ -164,7 +163,7 @@ where pub fn draw_dnd_icon( renderer: &mut R, surface: &wl_surface::WlSurface, - location: impl Into>, + location: Point, scale: impl Into>, ) -> Vec> where @@ -181,7 +180,7 @@ where render_elements_from_surface_tree( renderer, surface, - location.into().to_physical_precise_round(scale), + location.to_physical(scale).to_i32_round(), scale, 1.0, Kind::Unspecified,