Merge pull request #3880 from libretro/master

Cleanup
This commit is contained in:
Twinaphex 2016-10-28 08:24:31 +02:00 committed by GitHub
commit 8242181657
3 changed files with 10 additions and 11 deletions

View File

@ -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 },

View File

@ -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];

View File

@ -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,