Loara228 / deadlock-esp

external cheat for deadlock / внешний чит для дедлок
MIT License
69 stars 14 forks source link

If the resolution is not 1080p, it will cause overlay rendering errors. #16

Closed abcde89525 closed 1 month ago

abcde89525 commented 1 month ago

Uploading image.png…

My screen is 1440p, which causes the overlay to display in the wrong position.

Loara228 commented 1 month ago

Try to remove scaling in windows settings or program properties

abcde89525 commented 1 month ago

Yes, I have referred to previous issue reports and also tried checking my scaling settings, but I'm using the default 100% without any changes (I’m use a desktop).

abcde89525 commented 1 month ago

Actually, I suspect the issue lies with the version I compiled because it seems to include many new features that are not yet complete, resulting in numerous errors or warnings. I had to modify many parts in order to compile it successfully.

image image

abcde89525 commented 1 month ago

@Loara228 Hello, is there a way to control the render size manually? I've found that in order to get the overlay to display in the correct position, I have to change the windows11 display scale to about 130%.

Loara228 commented 1 month ago

Here you can specify your screen resolution

https://github.com/Loara228/deadlock-esp/blob/bd230ea6f7df5b44519669359b55d49d96f920e4/src/drawing/screen.rs#L5

    return (
        Vec2 { x: 0., y: 0. },
        Vec2 { x: 800f32, y: 600f32 }
    );

image

abcde89525 commented 1 month ago

Cool,thanks!