mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
C89_BUILD fixes
This commit is contained in:
parent
f6b273e1be
commit
1c31e37749
@ -234,7 +234,7 @@ enumerate_audio_devices(char *buf, size_t buflen)
|
||||
|
||||
RETRO_API void VIDEOPROC_CORE_PREFIX(retro_set_environment)(retro_environment_t cb)
|
||||
{
|
||||
struct retro_variable envvars[3] = {};
|
||||
struct retro_variable envvars[3];
|
||||
char video_devices[ENVVAR_BUFLEN];
|
||||
char audio_devices[ENVVAR_BUFLEN];
|
||||
|
||||
|
@ -134,13 +134,14 @@ static void setting_get_string_representation_uint_video_monitor_index(void *dat
|
||||
static void setting_get_string_representation_uint_custom_viewport_width(void *data,
|
||||
char *s, size_t len)
|
||||
{
|
||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||
struct retro_game_geometry *geom = NULL;
|
||||
struct retro_system_av_info *av_info = NULL;
|
||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||
if (!setting)
|
||||
return;
|
||||
|
||||
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
||||
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
||||
&av_info->geometry;
|
||||
av_info = video_viewport_get_system_av_info();
|
||||
geom = (struct retro_game_geometry*)&av_info->geometry;
|
||||
|
||||
if (*setting->value.target.unsigned_integer%geom->base_width == 0)
|
||||
snprintf(s, len, "%u (%ux)",
|
||||
@ -154,13 +155,14 @@ static void setting_get_string_representation_uint_custom_viewport_width(void *d
|
||||
static void setting_get_string_representation_uint_custom_viewport_height(void *data,
|
||||
char *s, size_t len)
|
||||
{
|
||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||
struct retro_game_geometry *geom = NULL;
|
||||
struct retro_system_av_info *av_info = NULL;
|
||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||
if (!setting)
|
||||
return;
|
||||
|
||||
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
||||
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
||||
&av_info->geometry;
|
||||
av_info = video_viewport_get_system_av_info();
|
||||
geom = (struct retro_game_geometry*)&av_info->geometry;
|
||||
|
||||
if (*setting->value.target.unsigned_integer%geom->base_height == 0)
|
||||
snprintf(s, len, "%u (%ux)",
|
||||
|
Loading…
Reference in New Issue
Block a user