Commit e61daa7270afa7fd5a677b8e7d3490ced190a79b

Philipp Wiesemann 2016-12-30T19:57:50

Fixed warning and missing animation delay in testoverlay2 program.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/testoverlay2.c b/test/testoverlay2.c
index 453f0f4..37ea1aa 100644
--- a/test/testoverlay2.c
+++ b/test/testoverlay2.c
@@ -150,7 +150,7 @@ int paused = 0;
 int i;
 SDL_bool done = SDL_FALSE;
 Uint32 pixel_format = SDL_PIXELFORMAT_YV12;
-int fpsdelay;
+static int fpsdelay;
 
 /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
 static void
@@ -328,7 +328,6 @@ main(int argc, char **argv)
     SDL_Window *window;
     int j;
     int fps = 12;
-    int fpsdelay;
     int nodelay = 0;
 #ifdef TEST_NV12
     Uint32 pixel_format = SDL_PIXELFORMAT_NV12;