Advertisement Jump to content
Sign in to follow this  
Peregrin

Unity SDL_WM_SetIcon with an 8 bit alpha image

This topic is 4890 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I currently use SDL_WM_SetIcon to set Jooleem's icon. The icon is based on a 32 bit PNG image, with an 8 bit alpha channel. However, at runtime the icon is displayed as if it has only a 1 bit alpha channel, and looks really bad. I am facing the same problem on both Windows XP and Mac OS X. The operating system supports 8 bit alpha icons, and other application make very nice use of them. The documentation mentions only these requirements for SDL_WM_SetIcon:
Quote:
Win32 icons must be 32x32. This function must be called before the first call to SDL_SetVideoMode.
My windows source image is 32x32 (128x128 on mac), and the function is called before SDL_SetVideoMode. Does anyone have any ideas as to how to make the icons look nice? If not, should I resort to platform specific #ifdefs and use the OS's API directly?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!