[SDL] Any outstanding bugs?
Ryan C. Gordon
icculus at clutteredmind.org
Mon Aug 19 08:27:01 PDT 2002
> I am not quite sure if this can be considered a bug, but if you are trying to
> create a SDL frame with more than 32 bpp, it just seg-faults (in
> SDL_SetVideoModeOk) without any error message.
This works with SDL CVS for me. Obviously, SDL_SetVideoMode() returns
NULL, but it doesn't segfault.
...
#include <stdio.h>
#include "SDL.h"
int main(void)
{
SDL_Surface *screen;
if (SDL_Init(SDL_INIT_VIDEO) == -1)
{
printf("SDL_Init() failed.\n");
return(42);
}
screen = SDL_SetVideoMode(640, 480, 4545, 0);
printf("screen == (%p).\n", screen);
SDL_Delay(10000);
SDL_Quit();
return(0);
}
--ryan.
More information about the SDL
mailing list