C89 fix for aspect ratio code in SDL_rpivideo.c

This commit is contained in:
Jools Wills 2016-11-18 21:50:13 +00:00
parent 08420606d0
commit 88a7e3d581

View file

@ -230,6 +230,10 @@ RPI_CreateWindow(_THIS, SDL_Window * window)
DISPMANX_UPDATE_HANDLE_T dispman_update;
uint32_t layer = SDL_RPI_VIDEOLAYER;
const char *env;
float srcAspect = 1;
float dstAspect = 1;
int factor_x = 0;
int factor_y = 0;
/* Disable alpha, otherwise the app looks composed with whatever dispman is showing (X11, console,etc) */
dispman_alpha.flags = DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS;
@ -244,11 +248,6 @@ RPI_CreateWindow(_THIS, SDL_Window * window)
display = SDL_GetDisplayForWindow(window);
displaydata = (SDL_DisplayData *) display->driverdata;
float srcAspect = 1;
float dstAspect = 1;
int factor_x = 0;
int factor_y = 0;
if (hintScale != NULL)
scalemode = *hintScale;