This commit is contained in:
twinaphex 2019-08-03 08:45:50 +02:00
parent 5247c214ff
commit f111ad893b

View File

@ -7225,17 +7225,13 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
case RETRO_ENVIRONMENT_SET_GEOMETRY:
{
const struct retro_game_geometry *in_geom = NULL;
struct retro_system_av_info *av_info = &video_driver_av_info;
struct retro_game_geometry *geom = (struct retro_game_geometry*)&av_info->geometry;
const struct retro_game_geometry *in_geom = (const struct retro_game_geometry*)data;
if (!geom)
return false;
in_geom = (const struct retro_game_geometry*)data;
RARCH_LOG("Environ SET_GEOMETRY.\n");
/* Can potentially be called every frame,
* don't do anything unless required. */
if ( (geom->base_width != in_geom->base_width) ||
@ -7255,6 +7251,11 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
/* TODO: Figure out what to do, if anything, with recording. */
}
else
{
RARCH_LOG("Environ SET_GEOMETRY.\n");
}
break;
}