comparison test/testoverlay.c @ 2267:c785543d1843

Okay, still some bugs, but everything builds again...
author Sam Lantinga <slouken@libsdl.org>
date Sat, 18 Aug 2007 05:39:09 +0000
parents c121d94672cb
children 27ab20a36eba
comparison
equal deleted inserted replaced
2266:e61ad15a205f 2267:c785543d1843
485 format.Amask = 0; 485 format.Amask = 0;
486 format.Rloss = 0; 486 format.Rloss = 0;
487 format.Gloss = 0; 487 format.Gloss = 0;
488 format.Bloss = 0; 488 format.Bloss = 0;
489 format.Aloss = 8; 489 format.Aloss = 8;
490 format.colorkey = 0;
491 format.alpha = 0;
492 490
493 newsurf = SDL_ConvertSurface(pic, &format, SDL_SWSURFACE); 491 newsurf = SDL_ConvertSurface(pic, &format, SDL_SWSURFACE);
494 if (!newsurf) { 492 if (!newsurf) {
495 fprintf(stderr, "Couldn't convert picture to 32bits RGB: %s\n", 493 fprintf(stderr, "Couldn't convert picture to 32bits RGB: %s\n",
496 SDL_GetError()); 494 SDL_GetError());