Skip to content

Conversation

@Ekopalypse
Copy link
Contributor

@Ekopalypse Ekopalypse commented Dec 28, 2024

@chcg
this most likely breaks the CI as there a two new files but I don't know what needs to be done
to add them to CI and also to PythonScriptTest project.

Ready for review

fixes #195


HBITMAP ConvertIconToBitmap(LPCWSTR file_path) {
HBITMAP hBitmap = nullptr;
HICON hIcon = (HICON)LoadImage(nullptr, file_path, IMAGE_ICON, 16, 16, LR_COLOR | LR_LOADFROMFILE);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe DPIManagerV2::loadIcon() could be used here for High DPI support.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The size is currently set to 16x16. To support really high dpi, further changes are probably needed, e.g. how to handle multiple bmp sizes.

@chcg chcg merged commit d14c8be into bruderstein:master Dec 30, 2024
6 checks passed
@Ekopalypse Ekopalypse deleted the issue_195 branch December 30, 2024 10:09
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.

Add some .ico or .bmp files in the installation package.

2 participants