[SDL] App icon sometimes not appearing on window titlebar
Ken Rogoway
Ken at HomebrewSoftware.com
Sun Mar 30 10:40:17 PDT 2008
I ran into something similar. You need to make sure you call
SDL_WM_SetIcon() before you call SDL_SetVideoMode().
Ken Rogoway
Homebrew Software
http://www.homebrewsoftware.com/
-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Stephen Anthony
Sent: Sunday, March 30, 2008 9:17 AM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: [SDL] App icon sometimes not appearing on window titlebar
I'm just wondering if anyone knows what could cause this. It mostly seems
to happen in Windows, but I've occasionally seen it Linux as well.
I'm referring to the icon which appears in the top left of the window, which
lists operations that can be performed. I assumed this icon was set with
SDL_WM_SetIcon. Strange this is, sometimes the icon doesn't appear in the
taskbar for the window either, and sometimes it does. I can't see a pattern
for why it's happening. Here's the relevant code, which loads from an XPM
file:
SDL_Surface *surface = SDL_CreateRGBSurfaceFrom(icon, 32, 32, 32,
32 * 4, 0xFF0000, 0x00FF00, 0x0000FF,
0xFF000000);
SDL_WM_SetIcon(surface, (unsigned char *) mask);
Anybody have any advice?
Steve
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1 - Release Date: 3/26/2008 12:00
AM
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1 - Release Date: 3/26/2008 12:00
AM
More information about the SDL
mailing list