mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 22:14:17 +00:00
Cleanup
This commit is contained in:
parent
5247c214ff
commit
f111ad893b
11
retroarch.c
11
retroarch.c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user