update wlx-capture; normalized coords for xshm mouse

This commit is contained in:
galister
2024-02-05 23:20:02 +01:00
parent 2fb55a8b62
commit c262d78b04
2 changed files with 3 additions and 3 deletions

View File

@@ -193,8 +193,8 @@ impl ScreenPipeline {
let vertex_buffer = app.graphics.upload_verts(
self.extentf[0],
self.extentf[1],
(mouse.x - 2) as _,
(mouse.y - 2) as _,
mouse.x * self.extentf[0] - 2.,
mouse.y * self.extentf[1] - 2.,
4.0,
4.0,
);