forge
Explore
Log in

Don't you dare go Hollow

Update Smithay and fix two unused upscale() calls

Browse files at this commit

f9ea905987b9a97ecf506df153fedf28d74b1bd5Ivan MolodetskikhParent: 7a8355b
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?..
Cargo.lockmodified+2 -2
@@ -3483,7 +3483,7 @@ checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
34833483 [[package]]
34843484 name = "smithay"
34853485 version = "0.7.0"
3486-source = "git+https://github.com/Smithay/smithay.git#bdf094ab687aa85f84abbeeaff06e3b66ab1e054"
3486+source = "git+https://github.com/Smithay/smithay.git#a92540d56b864679956ff71451d225a3f390c678"
34873487 dependencies = [
34883488 "aliasable",
34893489 "appendlist",
@@ -3557,7 +3557,7 @@ dependencies = [
35573557 [[package]]
35583558 name = "smithay-drm-extras"
35593559 version = "0.1.0"
3560-source = "git+https://github.com/Smithay/smithay.git#bdf094ab687aa85f84abbeeaff06e3b66ab1e054"
3560+source = "git+https://github.com/Smithay/smithay.git#a92540d56b864679956ff71451d225a3f390c678"
35613561 dependencies = [
35623562 "drm",
35633563 "libdisplay-info",
src/render_helpers/offscreen.rsmodified+1 -1
@@ -275,7 +275,7 @@ impl Element for OffscreenRenderElement {
275275 let mut region = region.to_f64().intersection(src)?;
276276
277277 region.loc -= src.loc;
278- region.upscale(texture_size / src.size);
278+ region = region.upscale(texture_size / src.size);
279279
280280 let logical = region.to_logical(self.scale, Transform::Normal, &src.size);
281281 Some(logical.to_physical_precise_up(scale))
src/render_helpers/texture.rsmodified+1 -1
@@ -195,7 +195,7 @@ impl<T: Texture> Element for TextureRenderElement<T> {
195195 let mut region = region.to_f64().intersection(src)?;
196196
197197 region.loc -= src.loc;
198- region.upscale(texture_size / src.size);
198+ region = region.upscale(texture_size / src.size);
199199
200200 let logical =
201201 region.to_logical(self.buffer.scale, self.buffer.transform, &src.size);