Title: segafult Author: Anonymous Pastebin link: http://pastebin.com/HcfgDXLs First Edit: Monday 19th of March 2012 11:06:24 AM CDT Last Edit: Monday 19th of March 2012 11:06:24 AM CDT #include #include #include #include #include #include #include /*#include #include */ /* Took these out since they cause errors at compilation */ main() {         SDL_Init(SDL_INIT_VIDEO);         TTF_Init();         SDL_Surface *screen, *drawboard, *character, *props, *set, *menu;         TTF_Font *normal, *italic, *bold, *bolditalic;         const SDL_VideoInfo* screensize = SDL_GetVideoInfo();         SDL_Event event;         struct SDL_Rect menupos = {200, 1400, 250, 650};         int width, height;         width = screensize->current_w;         height = screensize->current_h;         bool loop = true;         bool splash = false;         bool menuopen = false;         screen = SDL_SetVideoMode(width, height, 0, 0);         SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);         while(loop == true)         {                 while(SDL_PollEvent(&event))                 {                         switch(event.type)                         {                         case SDL_KEYDOWN:                                 if(event.key.keysym.sym == SDLK_ESCAPE)                                 {                                 if(menuopen == false | splash == false)                                 {                                 drawboard = IMG_Load("Sprites/menu.png");                                 menu = SDL_DisplayFormat(drawboard);                                 SDL_BlitSurface(menu, NULL, screen, &menupos);                                 SDL_FreeSurface(drawboard);                                 menuopen = true;                                 }                                 if(menuopen == true)                                 {                                         SDL_Quit();                                         loop = false;                                 }                                 }                                 break;                         case SDL_QUIT:                                 SDL_Quit();                                 loop = false;                                 break;                         }                         SDL_UpdateRect(screen, 0, 0, 0, 0);                         SDL_Delay(50000);                 }         } }