(Imageviewer) Call RETRO_ENVIRONMENT_SET_GEOMETRY after loading image

This commit is contained in:
twinaphex 2016-01-22 16:50:26 +01:00
parent bb679fa9ca
commit 9acf3e2309

View File

@ -196,6 +196,7 @@ void IMAGE_CORE_PREFIX(retro_cheat_set)(unsigned a, bool b, const char * c)
static bool imageviewer_load(const char *path, uint32_t *buf, int image_index)
{
int comp;
struct retro_system_av_info info;
uint32_t *end = NULL;
image_buffer = (uint32_t*)stbi_load(
path,
@ -215,6 +216,10 @@ static bool imageviewer_load(const char *path, uint32_t *buf, int image_index)
buf++;
}
IMAGE_CORE_PREFIX(retro_get_system_av_info)(&info);
IMAGE_CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_SET_GEOMETRY, &info.geometry);
return true;
}