Search Results

Search found 1 results on 1 pages for 'user574911'.

Page 1/1 | 1 

  • Problem with SDL 1.2 when setting videomode with SDL_SetVideoMode

    - by user574911
    I have a very simple program, in which I am initialising with SDL_Init(flags) and using SDL_SetVideoMode but It fails by returning null. I think I am missing some config parameters/options, if any one knows about this erro please let me know. My code is as below : if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { fprintf(stderr, "Could not initialize SDL\n"); exit(1); } screen = SDL_SetVideoMode(640, 480, 0, 0); if(!screen) { fprintf(stderr, "SDL: could not set video mode - exiting\n"); exit(1); }

    Read the article

1