Skip to content

Commit

Permalink
C89 fix for aspect ratio code in SDL_rpivideo.c
Browse files Browse the repository at this point in the history
  • Loading branch information
joolswills committed Nov 18, 2016
1 parent 9d9af1f commit 6c42ad5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/video/raspberry/SDL_rpivideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,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;
Expand All @@ -242,11 +246,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;

Expand Down

0 comments on commit 6c42ad5

Please sign in to comment.