mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Update Smithay and fix two unused upscale() calls
Uh oh. I can't come up with an easy way to test these, so let's just hope that before they were broken and now they work fine?..
This commit is contained in:
Generated
+2
-2
@@ -3483,7 +3483,7 @@ checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "smithay"
|
name = "smithay"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
source = "git+https://github.com/Smithay/smithay.git#bdf094ab687aa85f84abbeeaff06e3b66ab1e054"
|
source = "git+https://github.com/Smithay/smithay.git#a92540d56b864679956ff71451d225a3f390c678"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aliasable",
|
"aliasable",
|
||||||
"appendlist",
|
"appendlist",
|
||||||
@@ -3557,7 +3557,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "smithay-drm-extras"
|
name = "smithay-drm-extras"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/Smithay/smithay.git#bdf094ab687aa85f84abbeeaff06e3b66ab1e054"
|
source = "git+https://github.com/Smithay/smithay.git#a92540d56b864679956ff71451d225a3f390c678"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"drm",
|
"drm",
|
||||||
"libdisplay-info",
|
"libdisplay-info",
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ impl Element for OffscreenRenderElement {
|
|||||||
let mut region = region.to_f64().intersection(src)?;
|
let mut region = region.to_f64().intersection(src)?;
|
||||||
|
|
||||||
region.loc -= src.loc;
|
region.loc -= src.loc;
|
||||||
region.upscale(texture_size / src.size);
|
region = region.upscale(texture_size / src.size);
|
||||||
|
|
||||||
let logical = region.to_logical(self.scale, Transform::Normal, &src.size);
|
let logical = region.to_logical(self.scale, Transform::Normal, &src.size);
|
||||||
Some(logical.to_physical_precise_up(scale))
|
Some(logical.to_physical_precise_up(scale))
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ impl<T: Texture> Element for TextureRenderElement<T> {
|
|||||||
let mut region = region.to_f64().intersection(src)?;
|
let mut region = region.to_f64().intersection(src)?;
|
||||||
|
|
||||||
region.loc -= src.loc;
|
region.loc -= src.loc;
|
||||||
region.upscale(texture_size / src.size);
|
region = region.upscale(texture_size / src.size);
|
||||||
|
|
||||||
let logical =
|
let logical =
|
||||||
region.to_logical(self.buffer.scale, self.buffer.transform, &src.size);
|
region.to_logical(self.buffer.scale, self.buffer.transform, &src.size);
|
||||||
|
|||||||
Reference in New Issue
Block a user