C89_BUILD fixes
This commit is contained in:
parent
c87ef25133
commit
dd1c376ea9
|
@ -228,6 +228,9 @@ static bool imageviewer_load(const char *path, int image_index)
|
||||||
#ifdef STB_IMAGE_IMPLEMENTATION
|
#ifdef STB_IMAGE_IMPLEMENTATION
|
||||||
int comp;
|
int comp;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RARCH_INTERNAL
|
||||||
|
extern bool video_driver_supports_rgba(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
imageviewer_free_image();
|
imageviewer_free_image();
|
||||||
|
|
||||||
|
@ -240,7 +243,6 @@ static bool imageviewer_load(const char *path, int image_index)
|
||||||
4);
|
4);
|
||||||
#else
|
#else
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
extern bool video_driver_supports_rgba();
|
|
||||||
image_texture.supports_rgba = video_driver_supports_rgba();
|
image_texture.supports_rgba = video_driver_supports_rgba();
|
||||||
#endif
|
#endif
|
||||||
if (!image_texture_load(&image_texture, path))
|
if (!image_texture_load(&image_texture, path))
|
||||||
|
|
|
@ -590,6 +590,7 @@ static void mui_render_label_value(mui_handle_t *mui,
|
||||||
char label_str[255];
|
char label_str[255];
|
||||||
char sublabel_str[255];
|
char sublabel_str[255];
|
||||||
char value_str[255];
|
char value_str[255];
|
||||||
|
uint32_t sublabel_color;
|
||||||
float label_offset = 0;
|
float label_offset = 0;
|
||||||
bool switch_is_on = true;
|
bool switch_is_on = true;
|
||||||
int value_len = utf8len(value);
|
int value_len = utf8len(value);
|
||||||
|
@ -598,7 +599,6 @@ static void mui_render_label_value(mui_handle_t *mui,
|
||||||
bool do_draw_text = false;
|
bool do_draw_text = false;
|
||||||
size_t usable_width = width - (mui->margin * 2);
|
size_t usable_width = width - (mui->margin * 2);
|
||||||
label_str[0] = value_str[0] = sublabel_str[0] = '\0';
|
label_str[0] = value_str[0] = sublabel_str[0] = '\0';
|
||||||
uint32_t sublabel_color;
|
|
||||||
|
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
sublabel_color = 0xff888888;
|
sublabel_color = 0xff888888;
|
||||||
|
|
Loading…
Reference in New Issue