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"
3483 [[package]]3483 [[package]]
3484 name = "smithay"3484 name = "smithay"
3485 version = "0.7.0"3485 version = "0.7.0"
3486-source = "git+https://github.com/Smithay/smithay.git#bdf094ab687aa85f84abbeeaff06e3b66ab1e054"3486+source = "git+https://github.com/Smithay/smithay.git#a92540d56b864679956ff71451d225a3f390c678"
3487 dependencies = [3487 dependencies = [
3488 "aliasable",3488 "aliasable",
3489 "appendlist",3489 "appendlist",
@@ -3557,7 +3557,7 @@ dependencies = [
3557 [[package]]3557 [[package]]
3558 name = "smithay-drm-extras"3558 name = "smithay-drm-extras"
3559 version = "0.1.0"3559 version = "0.1.0"
3560-source = "git+https://github.com/Smithay/smithay.git#bdf094ab687aa85f84abbeeaff06e3b66ab1e054"3560+source = "git+https://github.com/Smithay/smithay.git#a92540d56b864679956ff71451d225a3f390c678"
3561 dependencies = [3561 dependencies = [
3562 "drm",3562 "drm",
3563 "libdisplay-info",3563 "libdisplay-info",
src/render_helpers/offscreen.rsmodified+1 -1
@@ -275,7 +275,7 @@ impl Element for OffscreenRenderElement {
275 let mut region = region.to_f64().intersection(src)?;275 let mut region = region.to_f64().intersection(src)?;
276 276
277 region.loc -= src.loc;277 region.loc -= src.loc;
278- region.upscale(texture_size / src.size);278+ region = region.upscale(texture_size / src.size);
279 279
280 let logical = region.to_logical(self.scale, Transform::Normal, &src.size);280 let logical = region.to_logical(self.scale, Transform::Normal, &src.size);
281 Some(logical.to_physical_precise_up(scale))281 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> {
195 let mut region = region.to_f64().intersection(src)?;195 let mut region = region.to_f64().intersection(src)?;
196 196
197 region.loc -= src.loc;197 region.loc -= src.loc;
198- region.upscale(texture_size / src.size);198+ region = region.upscale(texture_size / src.size);
199 199
200 let logical =200 let logical =
201 region.to_logical(self.buffer.scale, self.buffer.transform, &src.size);201 region.to_logical(self.buffer.scale, self.buffer.transform, &src.size);