Page 1 of 1

[fixed]Win32 Icon scale issues

Posted: Sun Jun 19, 2016 6:36 pm
by luthyr
In later versions of Windows, with higher DPI and large icon sizes in the taskbar, it appears that Irrlicht doesn't seem to properly handle loading icons at the maximum size that is saved in the icon. I think without the flag, it will grab the first (smallest) image?

Changing

Code: Select all

wcex.hIcon = (HICON)LoadImage(hInstance, __TEXT("irrlicht.ico"), IMAGE_ICON, 0,0, LR_LOADFROMFILE);
to

Code: Select all

wcex.hIcon = (HICON)LoadImage(hInstance, __TEXT("irrlicht.ico"), IMAGE_ICON, 0,0, LR_LOADFROMFILE | LR_DEFAULTSIZE);
Seemed to solve it for me.

Re: Win32 Icon scale issues

Posted: Mon Jun 20, 2016 9:10 am
by CuteAlien
Thanks, I have to check this.

Re: Win32 Icon scale issues

Posted: Wed Dec 20, 2017 9:31 pm
by CuteAlien
Fixed in Irrlicht trunk r5594. Couldn't reproduce on my systems, but I think change sounds good according to API docs.