Skip to content

Commit bbe9f32

Browse files
committed
(vita2d_gfx) silence warnings
1 parent 4b796f3 commit bbe9f32

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

gfx/drivers/vita2d_gfx.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -912,14 +912,11 @@ static void vita2d_update_viewport(vita_video_t* vita,
912912
video_mode_data = vita2d_get_video_mode_data();
913913
unsigned temp_width = video_mode_data.width;
914914
unsigned temp_height = video_mode_data.height;
915-
int x = 0;
916-
int y = 0;
917915
float device_aspect = ((float)temp_width) / temp_height;
918916
float width = temp_width;
919917
float height = temp_height;
920918
settings_t *settings = config_get_ptr();
921919
bool video_scale_integer = settings->bools.video_scale_integer;
922-
unsigned aspect_ratio_idx = settings->uints.video_aspect_ratio_idx;
923920

924921
if (video_scale_integer)
925922
{
@@ -931,7 +928,6 @@ static void vita2d_update_viewport(vita_video_t* vita,
931928
}
932929
else if (vita->keep_aspect)
933930
{
934-
float desired_aspect = video_driver_get_aspect_ratio();
935931
if ( (vita->rotation == ORIENTATION_VERTICAL)
936932
|| (vita->rotation == ORIENTATION_FLIPPED_ROTATED))
937933
{
@@ -989,7 +985,6 @@ static void vita2d_set_viewport_wrapper(void *data, unsigned vp_width,
989985
else if (vita->keep_aspect && !force_full)
990986
{
991987
float desired_aspect = video_driver_get_aspect_ratio();
992-
993988
#if defined(HAVE_MENU)
994989
if (aspect_ratio_idx == ASPECT_RATIO_CUSTOM)
995990
{

0 commit comments

Comments
 (0)