[SDL] Troubleshooting blitting crash on MinGW
Chris Nystrom
cnystrom at gmail.com
Tue Feb 14 02:05:23 PST 2006
On 2/13/06, Simon <simon.xhz at gmail.com> wrote:
> Here's how the two surfaces are created:
> /* window */
> ScreenSurfaceType = SDL_SWSURFACE | SDL_RESIZABLE;
> int r = SDL_Init(SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE);
> theWindow = SDL_SetVideoMode(wWidth, wHeight, bpp, ScreenSurfaceType);
> /* myimage */
> SDL_Surface *myimage = IMG_Load(path);
> // the image pointed to is a PNG-RGBA made by TheGIMP
>
> Do you have any ideas? I'll be able to work on this a lot starting
> tonight (in about 5 hours) and for the next two days.
What data type do you have for "theWindow"?
When you run the program are you getting an SDL window? How much do
you see before it crashes?
Also, for one or both of the co-ordinates have you tried replacing
them with NULL just for debusgging to see what happens? This might
tell you if the problem is with the cordinates or with the surfaces.
Chris
--
E-Mail: Chris Nystrom <cnystrom at gmail.com>
http://www.newio.org/
AIM: nystromchris
More information about the SDL
mailing list