mirror of https://github.com/encounter/SDL.git
testgeometry.c: fix build in c89 mode
This commit is contained in:
parent
ca39f6d6cd
commit
f5c0cdea38
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue