mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
correctly display failed message in take_screenshot when read_frame_raw
isn't defined.
This commit is contained in:
parent
83df686965
commit
6e471a6d80
@ -294,13 +294,18 @@ bool take_screenshot(void)
|
||||
free(frame_data);
|
||||
}
|
||||
else
|
||||
RARCH_ERR(RETRO_LOG_TAKE_SCREENSHOT_ERROR);
|
||||
ret = false;
|
||||
|
||||
g_extern.frame_cache.data = old_data;
|
||||
g_extern.frame_cache.width = old_width;
|
||||
g_extern.frame_cache.height = old_height;
|
||||
g_extern.frame_cache.pitch = old_pitch;
|
||||
}
|
||||
else
|
||||
{
|
||||
RARCH_ERR(RETRO_LOG_TAKE_SCREENSHOT_ERROR);
|
||||
ret = false;
|
||||
}
|
||||
|
||||
|
||||
if (ret)
|
||||
|
Loading…
Reference in New Issue
Block a user