Skip to content

Use the Tauri implementation of the DPI-change fix#10

Merged
acarl005 merged 2 commits into
warpdotdev/v0.30.xfrom
andy/fix-windows-dpi-changed-4
Feb 20, 2025
Merged

Use the Tauri implementation of the DPI-change fix#10
acarl005 merged 2 commits into
warpdotdev/v0.30.xfrom
andy/fix-windows-dpi-changed-4

Conversation

@acarl005
Copy link
Copy Markdown
Collaborator

@acarl005 acarl005 commented Feb 14, 2025

This PR is another attempt at #8. Instead of deleting that check altogether, it is guarded by a Windows version check. Tauri noticed in tauri-apps/tao#1056 that this is still necessary in Windows 10. In this commit i've reverted my fix and applied theirs on top.

It's a little easier to see using this semantic diff tool that they just wrapped a big block of code in an if-else.

Using that same tool to visualize this diff: https://app.semanticdiff.com/gh/warpdotdev/winit/pull/10/changes#src/platform_impl/windows/event_loop.rs?ignore_comments=false


pub static WIN_VERSION: LazyLock<windows_version::OsVersion> =
LazyLock::new(windows_version::OsVersion::current);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acarl005 acarl005 requested a review from vorporeal February 14, 2025 16:25
@acarl005
Copy link
Copy Markdown
Collaborator Author

Need to test again with an external monitor but I packed up my home one. Need to test in the office next time I'm there.

@acarl005 acarl005 merged commit dce1fa3 into warpdotdev/v0.30.x Feb 20, 2025
@acarl005 acarl005 deleted the andy/fix-windows-dpi-changed-4 branch February 20, 2025 15:31
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

Successfully merging this pull request may close these issues.

2 participants