mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
(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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user