correctly display failed message in take_screenshot when read_frame_raw

isn't defined.
This commit is contained in:
aliaspider 2015-03-16 15:32:18 +01:00
parent 83df686965
commit 6e471a6d80

View File

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