Edit

kc3-lang/SDL/src/main/dummy

Branch :

  • Show log

    Commit

  • Author : Sam Lantinga
    Date : 2013-08-11 19:56:43
    Hash : 1ad936eb
    Message : Fixed bug 2027 - Full-screen appears to be broken - hang in SDL_DestroyWindow() Rainer Deyke I'm running Linux Mint 15 with the Cinnamon window manager. SDL_DestroyWindow consistently locks up for me when the window if fullscreen.

  • SDL_dummy_main.c
  • /* Include the SDL main definition header */
    #include "SDL_config.h"
    #include "SDL_main.h"
    
    #ifdef main
    #undef main
    int
    main(int argc, char *argv[])
    {
        return (SDL_main(argc, argv));
    }
    #else
    /* Nothing to do on this platform */
    int
    SDL_main_stub_symbol(void);
    
    int
    SDL_main_stub_symbol(void)
    {
        return 0;
    }
    #endif
    
    /* vi: set ts=4 sw=4 expandtab: */