Cleanup
This commit is contained in:
parent
73ec076160
commit
01bbca9c95
|
@ -117,14 +117,6 @@ static const video_poke_interface_t *video_driver_poke = NULL;
|
||||||
* being passed to video driver. */
|
* being passed to video driver. */
|
||||||
static video_pixel_scaler_t *video_driver_scaler_ptr = NULL;
|
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] = {
|
struct aspect_ratio_elem aspectratio_lut[ASPECT_RATIO_END] = {
|
||||||
{ "4:3", 1.3333f },
|
{ "4:3", 1.3333f },
|
||||||
{ "16:9", 1.7778f },
|
{ "16:9", 1.7778f },
|
||||||
|
|
|
@ -205,9 +205,6 @@ typedef struct video_driver
|
||||||
unsigned (*wrap_type_to_enum)(enum gfx_wrap_type type);
|
unsigned (*wrap_type_to_enum)(enum gfx_wrap_type type);
|
||||||
} video_driver_t;
|
} video_driver_t;
|
||||||
|
|
||||||
|
|
||||||
extern char rotation_lut[4][32];
|
|
||||||
|
|
||||||
struct aspect_ratio_elem
|
struct aspect_ratio_elem
|
||||||
{
|
{
|
||||||
char name[64];
|
char name[64];
|
||||||
|
|
|
@ -346,8 +346,18 @@ static void setting_get_string_representation_uint_video_rotation(void *data,
|
||||||
{
|
{
|
||||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
||||||
if (setting)
|
if (setting)
|
||||||
|
{
|
||||||
|
char rotation_lut[4][32] =
|
||||||
|
{
|
||||||
|
"Normal",
|
||||||
|
"90 deg",
|
||||||
|
"180 deg",
|
||||||
|
"270 deg"
|
||||||
|
};
|
||||||
|
|
||||||
strlcpy(s, rotation_lut[*setting->value.target.unsigned_integer],
|
strlcpy(s, rotation_lut[*setting->value.target.unsigned_integer],
|
||||||
len);
|
len);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setting_get_string_representation_uint_aspect_ratio_index(void *data,
|
static void setting_get_string_representation_uint_aspect_ratio_index(void *data,
|
||||||
|
|
Loading…
Reference in New Issue