testgeometry.c: fix build in c89 mode

This commit is contained in:
Ozkan Sezer 2021-08-19 01:28:10 +03:00
parent ca39f6d6cd
commit f5c0cdea38
1 changed files with 1 additions and 1 deletions

View File

@ -140,13 +140,13 @@ loop()
{ {
SDL_Rect viewport; SDL_Rect viewport;
SDL_Vertex verts[3];
double a; double a;
double d; double d;
int cx, cy; int cx, cy;
/* Query the sizes */ /* Query the sizes */
SDL_RenderGetViewport(renderer, &viewport); SDL_RenderGetViewport(renderer, &viewport);
SDL_Vertex verts[3];
SDL_zeroa(verts); SDL_zeroa(verts);
cx = viewport.x + viewport.w / 2; cx = viewport.x + viewport.w / 2;
cy = viewport.y + viewport.h / 2; cy = viewport.y + viewport.h / 2;