From 82ca2a8267b460c8f69b780f4b680ff1b5e53f57 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sat, 26 Nov 2022 21:06:55 +0100 Subject: [PATCH] (sdl_gfx.c) Style nits --- gfx/drivers/sdl_gfx.c | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/gfx/drivers/sdl_gfx.c b/gfx/drivers/sdl_gfx.c index b4df13aefd..4584037fd3 100644 --- a/gfx/drivers/sdl_gfx.c +++ b/gfx/drivers/sdl_gfx.c @@ -380,31 +380,34 @@ static bool sdl_gfx_frame(void *data, const void *frame, unsigned width, video_driver_get_window_title(title, sizeof(title)); - if (vid->menu.active) { - #ifdef HAVE_MENU - menu_driver_frame(menu_is_alive, video_info); - #endif + if (vid->menu.active) + { +#ifdef HAVE_MENU + menu_driver_frame(menu_is_alive, video_info); +#endif SDL_BlitSurface(vid->menu.frame, NULL, vid->screen, NULL); - } else { + } + else + { if (SDL_MUSTLOCK(vid->screen)) - SDL_LockSurface(vid->screen); + SDL_LockSurface(vid->screen); - video_frame_scale( - &vid->scaler, - vid->screen->pixels, - frame, - vid->scaler.in_fmt, - vid->screen->w, - vid->screen->h, - vid->screen->pitch, - width, - height, - pitch); + video_frame_scale( + &vid->scaler, + vid->screen->pixels, + frame, + vid->scaler.in_fmt, + vid->screen->w, + vid->screen->h, + vid->screen->pitch, + width, + height, + pitch); - if (SDL_MUSTLOCK(vid->screen)) - SDL_UnlockSurface(vid->screen); - } + if (SDL_MUSTLOCK(vid->screen)) + SDL_UnlockSurface(vid->screen); + } if (title[0]) SDL_WM_SetCaption(title, NULL);