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

View File

@ -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;