upgrade SDL to version 2.0.8
[platform/upstream/SDL.git] / test / teststreaming.c
index 7ec6891..f442ed8 100755 (executable)
@@ -99,7 +99,7 @@ loop()
     while (SDL_PollEvent(&event)) {
         switch (event.type) {
         case SDL_KEYDOWN:
-            if (event.key.keysym.sym == SDLK_ESCAPE) {
+            if (event.key.keysym.sym == SDLK_ESCAPE || event.key.keysym.sym == SDLK_f) {
                 done = SDL_TRUE;
             }
             break;
@@ -122,7 +122,6 @@ loop()
     }
 #endif
 }
-
 int
 main(int argc, char **argv)
 {
@@ -138,7 +137,7 @@ main(int argc, char **argv)
     }
 
     /* load the moose images */
-    handle = SDL_RWFromFile("moose.dat", "rb");
+    handle = SDL_RWFromFile("res/moose.dat", "rb");
     if (handle == NULL) {
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Can't find the file moose.dat !\n");
         quit(2);