[SDL] SDL_CreateRGBSurfaceFrom in Win32

Tomas Jakobsson tompsson at hotmail.com
Sat Jan 1 05:31:46 PST 2005


Ive found some issues with the new 1.2.8 release af SDL.

Surface	= SDL_CreateRGBSurfaceFrom (&Icon, 32, 32, 32, 128, 0, 0, 0, 0);

SDL_WM_SetIcon (Surface, NULL);

I use this to load in a huge pile of pixels (Icon which is an byte array of 
the size 4096) and set an Icon on the newly made window.

This worked perfect in 1.2.7 but in 1.2.8 this icon will become single 
colored using the color of the first pixel in this array i send it.

Am i doing something wrong or did something break in 1.2.8?

Ive seen this happen in Windows XP and havent had time to test it in SuSE or 
MacOS yet.

Any help would be appreciated.

_________________________________________________________________
Hitta rätt på nätet med MSN Sök http://search.msn.se/





More information about the SDL mailing list