diff --git a/gfx/video_driver.c b/gfx/video_driver.c index a62c7e0a55..d41cd8a99d 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -117,14 +117,6 @@ static const video_poke_interface_t *video_driver_poke = NULL; * being passed to video driver. */ static video_pixel_scaler_t *video_driver_scaler_ptr = NULL; -char rotation_lut[4][32] = -{ - "Normal", - "90 deg", - "180 deg", - "270 deg" -}; - struct aspect_ratio_elem aspectratio_lut[ASPECT_RATIO_END] = { { "4:3", 1.3333f }, { "16:9", 1.7778f }, diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 3403136453..de25dc7d92 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -205,9 +205,6 @@ typedef struct video_driver unsigned (*wrap_type_to_enum)(enum gfx_wrap_type type); } video_driver_t; - -extern char rotation_lut[4][32]; - struct aspect_ratio_elem { char name[64]; diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 9908605850..97871cf4b6 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -346,8 +346,18 @@ static void setting_get_string_representation_uint_video_rotation(void *data, { rarch_setting_t *setting = (rarch_setting_t*)data; if (setting) + { + char rotation_lut[4][32] = + { + "Normal", + "90 deg", + "180 deg", + "270 deg" + }; + strlcpy(s, rotation_lut[*setting->value.target.unsigned_integer], len); + } } static void setting_get_string_representation_uint_aspect_ratio_index(void *data,