[fixed]Win32 Icon scale issues

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
luthyr
Posts: 69
Joined: Wed Dec 30, 2009 5:47 pm

[fixed]Win32 Icon scale issues

Post 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.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Win32 Icon scale issues

Post by CuteAlien »

Thanks, I have to check this.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Win32 Icon scale issues

Post by CuteAlien »

Fixed in Irrlicht trunk r5594. Couldn't reproduce on my systems, but I think change sounds good according to API docs.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply