Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SDL/SDL.h>
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char *argv)
- {
- SDL_Surface *screen;
- if (SDL_Init(SDL_INIT_VIDEO) != 0) {
- printf("Unable to intialze SDL: %s\n",SDL_GetError());
- return(1);
- }
- atexit(SDL_Quit);
- screen = SDL_SetVideoMode(640, 480, 16, SDL_FULLSCREEN);
- if (screen == NULL) {
- printf("Unable to set video mode: %s\n",SDL_GetError);
- return(1);
- }
- printf("Success!\n");
- return(0);
- }
Add Comment
Please, Sign In to add comment