diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-09 00:12:10 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-09 00:12:10 +0100 |
commit | 919469ebd185e8a38738b358131789c012802c24 (patch) | |
tree | dd1000aa7674c98f943dba8389488873fdea049c /tr8vm.c | |
parent | bc0c541c96d06b252684bc90166602248da6f376 (diff) | |
download | tr8vm-919469ebd185e8a38738b358131789c012802c24.tar.gz tr8vm-919469ebd185e8a38738b358131789c012802c24.zip |
Explicit init
Diffstat (limited to 'tr8vm.c')
-rw-r--r-- | tr8vm.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -231,6 +231,12 @@ int main(int argc, char *argv[]) } fclose(fd); + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER)) + { + fprintf(stderr, "Failed init: %s\n", SDL_GetError()); + return 1; + } + SDL_Window *screen = SDL_CreateWindow(APP_NAME " " APP_VERSION, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, WINDOW_W, WINDOW_H, |