(Imageviewer) Call RETRO_ENVIRONMENT_SET_GEOMETRY after loading image
This commit is contained in:
parent
bb679fa9ca
commit
9acf3e2309
|
@ -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)
|
static bool imageviewer_load(const char *path, uint32_t *buf, int image_index)
|
||||||
{
|
{
|
||||||
int comp;
|
int comp;
|
||||||
|
struct retro_system_av_info info;
|
||||||
uint32_t *end = NULL;
|
uint32_t *end = NULL;
|
||||||
image_buffer = (uint32_t*)stbi_load(
|
image_buffer = (uint32_t*)stbi_load(
|
||||||
path,
|
path,
|
||||||
|
@ -215,6 +216,10 @@ static bool imageviewer_load(const char *path, uint32_t *buf, int image_index)
|
||||||
buf++;
|
buf++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IMAGE_CORE_PREFIX(retro_get_system_av_info)(&info);
|
||||||
|
|
||||||
|
IMAGE_CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_SET_GEOMETRY, &info.geometry);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue