Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scissor width and height are not proportional to scale_factor #375

Open
shinmili opened this issue Sep 26, 2021 · 1 comment
Open

Scissor width and height are not proportional to scale_factor #375

shinmili opened this issue Sep 26, 2021 · 1 comment

Comments

@shinmili
Copy link

When I run draw_state example with 1.25x scale factor (which is my monitor default), the output of draw_state.rs example is like the image below. The code tells the logo to be scissored with 100x100 width and height, but actually it's scissored with 75x75:

draw_state

The output of the example with 1x scale factor (running WINIT_X11_SCALE_FACTOR=1 cargo run --example draw_state) is like the image below. I think this is correctly scissored, and the result of 1.25x should be like this output image enlarged by 1.25x.

draw_state2

@shinmili
Copy link
Author

#340 can be the same issue. With higher scale factor (like 2.0x), the rust logo to be scissored didn't even show up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant