From aeb5a8e32ff8d57ea99de044cb11c0bfbba693fb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 3 Feb 2016 16:13:37 +0100 Subject: [PATCH] (screenshot.c) Cleanup --- screenshot.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/screenshot.c b/screenshot.c index 143d1a73a4..d53e7e0961 100644 --- a/screenshot.c +++ b/screenshot.c @@ -206,9 +206,11 @@ static bool take_screenshot_choice(void) video_driver_ctl(RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER, NULL); return take_screenshot_viewport(); } - else if (!video_driver_ctl(RARCH_DISPLAY_CTL_CACHED_FRAME_HAS_VALID_FB, NULL)) + + if (!video_driver_ctl(RARCH_DISPLAY_CTL_CACHED_FRAME_HAS_VALID_FB, NULL)) return take_screenshot_raw(); - else if (video_driver_ctl(RARCH_DISPLAY_CTL_SUPPORTS_READ_FRAME_RAW, NULL)) + + if (video_driver_ctl(RARCH_DISPLAY_CTL_SUPPORTS_READ_FRAME_RAW, NULL)) { unsigned old_width, old_height; size_t old_pitch;