mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
take_screenshot - simplifications
This commit is contained in:
parent
86a222e0e6
commit
1b3b0c26d1
@ -371,14 +371,12 @@ static bool take_screenshot_choice(const char *name_base, bool savestate)
|
||||
|
||||
bool take_screenshot(const char *name_base, bool silence)
|
||||
{
|
||||
bool is_paused = runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL);
|
||||
bool ret = take_screenshot_choice(name_base, silence);
|
||||
bool ret = take_screenshot_choice(name_base, silence);
|
||||
|
||||
if (is_paused)
|
||||
{
|
||||
if (!runloop_ctl(RUNLOOP_CTL_IS_IDLE, NULL))
|
||||
if ( runloop_ctl(RUNLOOP_CTL_IS_PAUSED, NULL)
|
||||
&& !runloop_ctl(RUNLOOP_CTL_IS_IDLE, NULL)
|
||||
)
|
||||
video_driver_cached_frame();
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user