Hello;
I want to create a empty SDL surface, with this code:
int Guardian;
unsigned int rmask, gmask, bmask, amask;
SDL_Surface *mapa1;
rmask = 0xffffffff;
gmask = 0x00000000;
bmask = 0xffff0000;
amask = 0x00ffff00;
/* Code for init SDL in 640x480x16, it runs */
mapa1=SDL_CreateRGBSurface(SDL_SRCCOLORKEY,100,100,16,rmask,gmask,bmask,amask);
if (mapa1==NULL)
{
printf("\nCreando mapa1 ERROR\n");
} else {
printf("\nCreando mapa1 OK\n");
}
Guardian=SDL_BlitSurface(mapa1,NULL,screen,NULL);
if (Guardian==0)
{
printf("\nCopiando imagen OK");
} else {
printf("\nCopiando imagen ERROR");
}
Guardian=SDL_Flip(screen);
if (Guardian==0)
{
printf("\nUpdate de screen OK");
} else {
printf("\nUpdate de screen ERROR");
}
I cant see anything in screen and all messages are of OK. ?Any idea? :?