[SDL] Problem with SDL_image on Windows
info at tajjada.com
Mon Jul 26 12:55:09 PDT 2010
Never mind, sorry...
Fixed everything already
On July 26, 2010, at 22:48:54.00, Kikolani wrote:
> I have only been using SDL with SDL_image on Mac OS X until now. Now I am trying on Windows.
> The following code works perfectly on Mac OS X, but gives a Segmentation Fault on Windows:
> SDL_Surface* bigdigitimage;
> SDL_Surface* pickupsimage;
> SDL_Surface* temp;
> temp = IMG_Load("bigdigits.png");
> bigdigitimage = SDL_DisplayFormatAlpha(temp);
> temp = IMG_Load("pickups.png");
> pickupsimage = SDL_DisplayFormatAlpha(temp);
> I have been debugging the code for a while, and found out that the problem happens at the call to SDL_DisplayFormatAlpha().
> I am quite new to SDL, started using it last year for the first time, so I don't know much of what's happening.
> SDL mailing list
> SDL at lists.libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL