C89 fix for aspect ratio code in SDL_rpivideo.c
This commit is contained in:
parent
08420606d0
commit
88a7e3d581
1 changed files with 4 additions and 5 deletions
|
@ -230,6 +230,10 @@ RPI_CreateWindow(_THIS, SDL_Window * window)
|
||||||
DISPMANX_UPDATE_HANDLE_T dispman_update;
|
DISPMANX_UPDATE_HANDLE_T dispman_update;
|
||||||
uint32_t layer = SDL_RPI_VIDEOLAYER;
|
uint32_t layer = SDL_RPI_VIDEOLAYER;
|
||||||
const char *env;
|
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) */
|
/* Disable alpha, otherwise the app looks composed with whatever dispman is showing (X11, console,etc) */
|
||||||
dispman_alpha.flags = DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS;
|
dispman_alpha.flags = DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS;
|
||||||
|
@ -244,11 +248,6 @@ RPI_CreateWindow(_THIS, SDL_Window * window)
|
||||||
display = SDL_GetDisplayForWindow(window);
|
display = SDL_GetDisplayForWindow(window);
|
||||||
displaydata = (SDL_DisplayData *) display->driverdata;
|
displaydata = (SDL_DisplayData *) display->driverdata;
|
||||||
|
|
||||||
float srcAspect = 1;
|
|
||||||
float dstAspect = 1;
|
|
||||||
int factor_x = 0;
|
|
||||||
int factor_y = 0;
|
|
||||||
|
|
||||||
if (hintScale != NULL)
|
if (hintScale != NULL)
|
||||||
scalemode = *hintScale;
|
scalemode = *hintScale;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue