Title: Test 'em! Author: Anonymous Pastebin link: http://pastebin.com/8Us5wFkH First Edit: Monday 19th of March 2012 12:15:08 PM CDT Last Edit: Monday 19th of March 2012 12:15:08 PM 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 = {0, 0, 250, 650};         int width, height;         width = screensize->current_w;         height = screensize->current_h;         bool nope = true;         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)         {                 if(SDL_PollEvent(&event))                 {                         switch(event.type)                         {                         case SDL_KEYDOWN:                                 if(event.key.keysym.sym == SDLK_ESCAPE)                                 {                                 if(menuopen == true)                                 {                                 puts("Menu has been closed.");                                 menuopen = false;                                 }                                 if(menuopen == false)                                 {                                 drawboard = IMG_Load("Sprites/menu.png");                                 menu = SDL_DisplayFormat(drawboard);                                 SDL_BlitSurface(menu, NULL, screen, &menupos);                                 SDL_FreeSurface(drawboard);                                 menuopen = true;                                 }                                 }                                 break;                         case SDL_QUIT:                                 SDL_Quit();                                 loop = false;                                 break;                         }                         SDL_UpdateRect(screen, 0, 0, 0, 0);                 }         } }