Skip to content

fix(windows): ensure APIs exist before using it#12848

Merged
amrbashir merged 4 commits into
devfrom
fix/use-backward-compatible-apis
Feb 28, 2025
Merged

fix(windows): ensure APIs exist before using it#12848
amrbashir merged 4 commits into
devfrom
fix/use-backward-compatible-apis

Conversation

@amrbashir

@amrbashir amrbashir commented Feb 28, 2025

Copy link
Copy Markdown
Member

closes #12847

@amrbashir amrbashir requested a review from a team as a code owner February 28, 2025 09:54
@github-actions

github-actions Bot commented Feb 28, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through 65b9b60

There are 3 changes which include tauri-cli with patch, tauri with patch, tauri-runtime-wry with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tauri-runtime-wry 2.4.0 2.4.1
tauri 2.3.0 2.3.1
@tauri-apps/cli 2.3.0 2.3.1
tauri-cli 2.3.0 2.3.1

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@Legend-Master

Copy link
Copy Markdown
Contributor

Since we're at it, should we also use the DPI aware APIs for this as well?

let padded_border = GetSystemMetrics(SM_CXPADDEDBORDER);
let border_x = GetSystemMetrics(SM_CXFRAME) + padded_border;
let border_y = GetSystemMetrics(SM_CYFRAME) + padded_border;

lucasfernog
lucasfernog previously approved these changes Feb 28, 2025
@amrbashir

Copy link
Copy Markdown
Member Author

@Legend-Master nice catch, I distinctively remember telling myself I should update this, apparently my ADHD got the better of me and forgot.

@amrbashir amrbashir merged commit e103e87 into dev Feb 28, 2025
@amrbashir amrbashir deleted the fix/use-backward-compatible-apis branch February 28, 2025 12:46
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.

[bug] GetDpiForWindow could not be located on Windows <1607

3 participants