winit/wayland: Apply scale when creating drag surface
This commit is contained in:
parent
b4168e69cc
commit
a1792b681a
4 changed files with 2383 additions and 5 deletions
|
|
@ -151,14 +151,15 @@ impl PlatformSpecific {
|
|||
surface: &dyn HasWindowHandle,
|
||||
width: u32,
|
||||
height: u32,
|
||||
scale: f64,
|
||||
data: &[u8],
|
||||
offset: Vector,
|
||||
) {
|
||||
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
||||
{
|
||||
return self
|
||||
.wayland
|
||||
.update_surface_shm(surface, width, height, data, offset);
|
||||
return self.wayland.update_surface_shm(
|
||||
surface, width, height, scale, data, offset,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue