瀏覽代碼

Fixed warning and missing animation delay in testoverlay2 program.

Philipp Wiesemann 8 年之前
父節點
當前提交
e61daa7270
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      test/testoverlay2.c

+ 1 - 2
test/testoverlay2.c

@@ -150,7 +150,7 @@ int paused = 0;
 int i;
 int i;
 SDL_bool done = SDL_FALSE;
 SDL_bool done = SDL_FALSE;
 Uint32 pixel_format = SDL_PIXELFORMAT_YV12;
 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. */
 /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */
 static void
 static void
@@ -328,7 +328,6 @@ main(int argc, char **argv)
     SDL_Window *window;
     SDL_Window *window;
     int j;
     int j;
     int fps = 12;
     int fps = 12;
-    int fpsdelay;
     int nodelay = 0;
     int nodelay = 0;
 #ifdef TEST_NV12
 #ifdef TEST_NV12
     Uint32 pixel_format = SDL_PIXELFORMAT_NV12;
     Uint32 pixel_format = SDL_PIXELFORMAT_NV12;