mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-19 22:02:41 +01:00
Init SDL before graphics...
This commit is contained in:
parent
51274ed2f3
commit
c037db50c2
@ -27,9 +27,6 @@ int main(int argc, char **argv)
|
|||||||
srand(tv.tv_usec);
|
srand(tv.tv_usec);
|
||||||
|
|
||||||
printf("%s by Christian Bauer\n", VERSION_STRING);
|
printf("%s by Christian Bauer\n", VERSION_STRING);
|
||||||
if (!init_graphics())
|
|
||||||
return 0;
|
|
||||||
fflush(stdout);
|
|
||||||
// Init SDL
|
// Init SDL
|
||||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0) {
|
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0) {
|
||||||
fprintf(stderr, "Couldn't initialize SDL (%s)\n", SDL_GetError());
|
fprintf(stderr, "Couldn't initialize SDL (%s)\n", SDL_GetError());
|
||||||
@ -40,6 +37,9 @@ int main(int argc, char **argv)
|
|||||||
fprintf(stderr, "Unable to init TTF: %s\n", TTF_GetError() );
|
fprintf(stderr, "Unable to init TTF: %s\n", TTF_GetError() );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if (!init_graphics())
|
||||||
|
return 0;
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
the_app = new Frodo();
|
the_app = new Frodo();
|
||||||
the_app->ArgvReceived(argc, argv);
|
the_app->ArgvReceived(argc, argv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user