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

DpiChanged capability #12

Open
mediabuff opened this issue Dec 13, 2017 · 2 comments
Open

DpiChanged capability #12

mediabuff opened this issue Dec 13, 2017 · 2 comments

Comments

@mediabuff
Copy link

would it be possible to add boiler plate code for dpi changes in both win32 and uwp templates ?

@walbourn
Copy link
Owner

The Win32 templates include embedded manifest elements which indicate that the EXE is "dpiAware". This means the app is only told true pixel sizes in all cases, which is typical for Win32 Direct3D apps & games. They already have support for multiple resolutions.

The UWP templates will also communicate 'true pixels' to the Game module. You can also add more code to the OnDpiChanged handler in Main.cpp.

What in particular were you looking for?

@mediabuff
Copy link
Author

I meant hooking into into WM_DPICHANGED etc. to structure the template for building modern DPI aware applications. Much like DynamicDPI SDK sample. Much of this can be abstracted and setup in the DirectX devices/contexts etc. appropriately. A uniformity brought into Win32 and UWP apps esp. targeting those that build their UI frameworks directly on DirectX (not using XAML or WPF).

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

No branches or pull requests

2 participants