1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Some more C89 compatibility fixes

This commit is contained in:
twinaphex 2015-06-26 19:34:19 +02:00
parent f01e481362
commit 97f10e4a64
3 changed files with 16 additions and 7 deletions

View File

@ -253,12 +253,20 @@ static void sdl2_init_renderer(sdl2_video_t *vid)
static void sdl_refresh_renderer(sdl2_video_t *vid)
{
SDL_Rect r;
SDL_RenderClear(vid->renderer);
r = (SDL_Rect){ vid->vp.x, vid->vp.y, (int)vid->vp.width, (int)vid->vp.height };
r.x = vid->vp.x;
r.y = vid->vp.y;
r.w = (int)vid->vp.width;
r.h = (int)vid->vp.height;
SDL_RenderSetViewport(vid->renderer, &r);
/* breaks int scaling */
/* SDL_RenderSetLogicalSize(vid->renderer, vid->vp.width, vid->vp.height); */
#if 0
SDL_RenderSetLogicalSize(vid->renderer, vid->vp.width, vid->vp.height);
#endif
}
static void sdl_refresh_viewport(sdl2_video_t *vid)

View File

@ -857,11 +857,12 @@ static bool xv_focus(void *data)
static bool xv_suppress_screensaver(void *data, bool enable)
{
(void)data;
(void)enable;
driver_t *driver = driver_get_ptr();
if (driver->display_type == RARCH_DISPLAY_X11)
(void)data;
(void)enable;
if (driver && driver->display_type == RARCH_DISPLAY_X11)
{
x11_suspend_screensaver(driver->video_window);
return true;

View File

@ -853,7 +853,7 @@ const char *menu_hash_to_str_de(uint32_t hash)
int menu_hash_get_help_de(uint32_t hash, char *s, size_t len)
{
uint32_t driver_hash = 0;
uint32_t driver_hash = 0;
settings_t *settings = config_get_ptr();
switch (hash)
@ -1236,4 +1236,4 @@ int menu_hash_get_help_de(uint32_t hash, char *s, size_t len)
}
return 0;
}
}