Commit f5c0cdea389687d324e8b3917c566e411241a95a

Ozkan Sezer 2021-08-19T01:28:10

testgeometry.c: fix build in c89 mode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/test/testgeometry.c b/test/testgeometry.c
index 9041233..e0a62bc 100644
--- a/test/testgeometry.c
+++ b/test/testgeometry.c
@@ -140,13 +140,13 @@ loop()
 
         {
             SDL_Rect viewport;
+            SDL_Vertex verts[3];
             double a;
             double d;
             int cx, cy;
 
             /* Query the sizes */
             SDL_RenderGetViewport(renderer, &viewport);
-            SDL_Vertex verts[3];
             SDL_zeroa(verts);
             cx = viewport.x + viewport.w / 2;
             cy = viewport.y + viewport.h / 2;