(screenshot.c) Cleanup

This commit is contained in:
twinaphex 2016-02-03 16:13:37 +01:00
parent f77f66450e
commit aeb5a8e32f

View File

@ -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;