| | |
| | | /* |
| | | Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | int consumed; |
| | | |
| | | consumed = SDLTest_CommonArg(state, i); |
| | | // needed vodoo to allow app to launch via OS X Finder |
| | | if (SDL_strncmp(argv[i], "-psn", 4)==0) { |
| | | consumed = 1; |
| | | } |
| | | if (consumed == 0) { |
| | | consumed = -1; |
| | | } |
| | |
| | | SDL_RenderPresent(renderer); |
| | | } |
| | | |
| | | SDL_EventState(SDL_DROPFILE, SDL_ENABLE); |
| | | |
| | | /* Main render loop */ |
| | | done = 0; |
| | | while (!done) { |