[SDL] Re: SDL_BlitSurface() error

MNH mirza_nh at gawab.com
Thu Aug 26 09:38:59 PDT 2004


hi everyone,

real dumb of me to miss that typo.

thanks again
nasir

On Thursday 26 August 2004 18:37, Alexander Stein wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> MNH schrieb:
> | SDL_UpperBlit: passed a NULL surface. The docs say if NULL is passed the
> | entire surface is copied, that does'nt seem to be happening.
>
> You passed a NULL *surface* not a rect. I think your file couldn't be
> opend or doesn't exist.
>
> | void display_bmp(SDL_Surface *screen,char *file_name)
> | {
> | 	SDL_Surface *image;
> |
> | 	image = SDL_LoadBMP(file_name);
> | 	if(image=NULL)
> | 	{
> | 		printf("failed loading image \n");
>
> ~                return;
> insert this     ^^^^^^^
> why blit a surface, which doesn't exist?
>
> The rest looks good, maybe this is your error.
>
> HTH
> Alexander
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFBLeCtafA7tk6JB1ERAv0CAJ47qOtS03ys7V2gZDl4IWyZxRC32QCgimOw
> LQx3NEjpMR+xTGwVaThDEgY=
> =+xWo
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl




More information about the SDL mailing list