mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-24 20:26:52 +00:00
Some more C89 compatibility fixes
This commit is contained in:
parent
f01e481362
commit
97f10e4a64
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user