mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 02:08:16 +00:00
(imageviewer) Cleanups
This commit is contained in:
parent
c4e821c3a1
commit
c66e721782
@ -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--;
|
||||
load_image = true;
|
||||
}
|
||||
|
||||
if (next_image)
|
||||
{
|
||||
if (imageviewer_load(buf, image_index))
|
||||
image_index++;
|
||||
load_image = true;
|
||||
}
|
||||
|
||||
if (load_image)
|
||||
imageviewer_load(buf, image_index);
|
||||
|
||||
#ifdef DUPE_TEST
|
||||
if (!image_uploaded)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user