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

Update SimpleDirect2DApplication for Visual Studio 2022 #366

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

LabMechanic
Copy link

Copied sample to Win10Samples/multimedia/Direct2D/SimpleDirect2DApplication.

Updated SimpleDirect2DApplication for Visual Studio 2022.

Replaced deprecated GetDesktopDpi with GetDpiForWindow.

Adjusted window size handling after GetDpiForWindow replacement.

Disabled warning C28251 in project settings.

Disabled deprecated option (/Gm or "Enable Minimal Rebuild").

Targeted Windows 10 and above.

Tested on Windows 11 (x64) with Visual Studio 2022.

image

@LabMechanic
Copy link
Author

@microsoft-github-policy-service agree

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.

1 participant