test/threadwin.c
changeset 5123 dc0dfdd58f27
parent 4429 faa9fc8e7f67
child 5535 96594ac5fd1a
     1.1 --- a/test/threadwin.c	Thu Jan 27 20:51:54 2011 -0800
     1.2 +++ b/test/threadwin.c	Thu Jan 27 22:44:08 2011 -0800
     1.3 @@ -241,16 +241,7 @@
     1.4      video_flags = SDL_SWSURFACE;
     1.5      parsed = 1;
     1.6      while (parsed) {
     1.7 -        /* If the threaded option is enabled, and the SDL library hasn't
     1.8 -           been compiled with threaded events enabled, then the mouse and
     1.9 -           keyboard won't respond.
    1.10 -         */
    1.11 -        if ((argc >= 2) && (strcmp(argv[1], "-threaded") == 0)) {
    1.12 -            init_flags |= SDL_INIT_EVENTTHREAD;
    1.13 -            argc -= 1;
    1.14 -            argv += 1;
    1.15 -            printf("Running with threaded events\n");
    1.16 -        } else if ((argc >= 2) && (strcmp(argv[1], "-fullscreen") == 0)) {
    1.17 +        if ((argc >= 2) && (strcmp(argv[1], "-fullscreen") == 0)) {
    1.18              video_flags |= SDL_FULLSCREEN;
    1.19              argc -= 1;
    1.20              argv += 1;
    1.21 @@ -320,9 +311,8 @@
    1.22  
    1.23      /* Loop, waiting for QUIT */
    1.24      while (!done) {
    1.25 -        if (!(init_flags & SDL_INIT_EVENTTHREAD)) {
    1.26 -            SDL_PumpEvents();   /* Needed when event thread is off */
    1.27 -        }
    1.28 +        SDL_PumpEvents();
    1.29 +
    1.30          if (SDL_PeepEvents(NULL, 0, SDL_PEEKEVENT, SDL_QUIT, SDL_QUIT)) {
    1.31              done = 1;
    1.32          }