mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Reduce size of local char variables
This commit is contained in:
parent
2f0f724813
commit
d07043fe26
@ -71,7 +71,7 @@ static void task_overlay_load_desc_image(
|
|||||||
struct overlay *input_overlay,
|
struct overlay *input_overlay,
|
||||||
unsigned ol_idx, unsigned desc_idx)
|
unsigned ol_idx, unsigned desc_idx)
|
||||||
{
|
{
|
||||||
char overlay_desc_image_key[64];
|
char overlay_desc_image_key[32];
|
||||||
char image_path[PATH_MAX_LENGTH];
|
char image_path[PATH_MAX_LENGTH];
|
||||||
config_file_t *conf = loader->conf;
|
config_file_t *conf = loader->conf;
|
||||||
|
|
||||||
@ -114,9 +114,9 @@ static bool task_overlay_load_desc(
|
|||||||
bool normalized, float alpha_mod, float range_mod)
|
bool normalized, float alpha_mod, float range_mod)
|
||||||
{
|
{
|
||||||
float width_mod, height_mod;
|
float width_mod, height_mod;
|
||||||
char overlay_desc_key[64];
|
char conf_key[32];
|
||||||
char conf_key[64];
|
char overlay_desc_key[32];
|
||||||
char overlay_desc_normalized_key[64];
|
char overlay_desc_normalized_key[32];
|
||||||
char overlay[256];
|
char overlay[256];
|
||||||
float tmp_float = 0.0f;
|
float tmp_float = 0.0f;
|
||||||
bool tmp_bool = false;
|
bool tmp_bool = false;
|
||||||
@ -129,8 +129,10 @@ static bool task_overlay_load_desc(
|
|||||||
const char *box = NULL;
|
const char *box = NULL;
|
||||||
config_file_t *conf = loader->conf;
|
config_file_t *conf = loader->conf;
|
||||||
|
|
||||||
overlay_desc_key[0] = conf_key[0] =
|
overlay_desc_key[0] =
|
||||||
overlay_desc_normalized_key[0] = overlay[0] = '\0';
|
conf_key[0] =
|
||||||
|
overlay_desc_normalized_key[0] =
|
||||||
|
overlay[0] = '\0';
|
||||||
|
|
||||||
snprintf(overlay_desc_key, sizeof(overlay_desc_key),
|
snprintf(overlay_desc_key, sizeof(overlay_desc_key),
|
||||||
"overlay%u_desc%u", ol_idx, desc_idx);
|
"overlay%u_desc%u", ol_idx, desc_idx);
|
||||||
@ -482,9 +484,9 @@ static void task_overlay_deferred_load(retro_task_t *task)
|
|||||||
|
|
||||||
for (i = 0; i < loader->pos_increment; i++, loader->pos++)
|
for (i = 0; i < loader->pos_increment; i++, loader->pos++)
|
||||||
{
|
{
|
||||||
|
char conf_key[32];
|
||||||
|
char overlay_full_screen_key[32];
|
||||||
char tmp_str[PATH_MAX_LENGTH];
|
char tmp_str[PATH_MAX_LENGTH];
|
||||||
char conf_key[64];
|
|
||||||
char overlay_full_screen_key[64];
|
|
||||||
float tmp_float = 0.0;
|
float tmp_float = 0.0;
|
||||||
bool tmp_bool = false;
|
bool tmp_bool = false;
|
||||||
struct texture_image *texture_img = NULL;
|
struct texture_image *texture_img = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user