Skip to content

Conversation

@gyk
Copy link

@gyk gyk commented Dec 17, 2021

When working on some HiDPI application, I find I have to manually scale the size attribute of nwg_resource for loading Bitmaps/Icons/ImageLists properly. This PR tries to fix it.

@gyk
Copy link
Author

gyk commented Jan 24, 2022

Update: In case GetDeviceCaps returns 0, USER_DEFAULT_SCREEN_DPI should be used for DPI instead, as does in https://github.com/microsoft/PowerToys/blob/v0.53.3/src/modules/fancyzones/FancyZonesLib/util.cpp#L130. Otherwise logical_to_physical will panic.

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