(imageviewer) Cleanups

This commit is contained in:
twinaphex 2016-01-21 20:13:24 +01:00
parent c4e821c3a1
commit c66e721782

View File

@ -263,6 +263,7 @@ static bool imageviewer_load(uint32_t *buf, int image_index)
void IMAGE_CORE_PREFIX(retro_run)(void)
{
uint32_t *buf = NULL;
bool load_image = false;
bool next_image = false;
bool prev_image = false;
static int frames = 0;
@ -297,16 +298,19 @@ void IMAGE_CORE_PREFIX(retro_run)(void)
if (prev_image)
{
if (imageviewer_load(buf, image_index))
image_index--;
image_index--;
load_image = true;
}
if (next_image)
{
if (imageviewer_load(buf, image_index))
image_index++;
image_index++;
load_image = true;
}
if (load_image)
imageviewer_load(buf, image_index);
#ifdef DUPE_TEST
if (!image_uploaded)
{