Navigation Menu

Skip to content

Commit

Permalink
Patched to compile in C90 mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 10, 2013
1 parent 6b2291d commit f7e0a9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/video/raspberry/SDL_rpivideo.c
Expand Up @@ -144,6 +144,7 @@ RPI_VideoInit(_THIS)
{
SDL_VideoDisplay display;
SDL_DisplayMode current_mode;
SDL_DisplayData *data;
uint32_t w,h;

/* Initialize BCM Host */
Expand All @@ -168,8 +169,6 @@ RPI_VideoInit(_THIS)
display.desktop_mode = current_mode;
display.current_mode = current_mode;

SDL_DisplayData *data;

/* Allocate display internal data */
data = (SDL_DisplayData *) SDL_calloc(1, sizeof(SDL_DisplayData));
if (data == NULL) {
Expand Down

0 comments on commit f7e0a9b

Please sign in to comment.