From 05a91a8e479935575f3bbd74d883fd69bccf5aca Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 27 Sep 2015 19:19:06 +0200 Subject: [PATCH] aspectratio_lut value needs to be changed too --- menu/menu_setting.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 827580a76c..cc818d5ed0 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -538,6 +538,9 @@ static int setting_action_start_custom_viewport_width(void *data) else custom->width = vp.full_width - custom->x; + aspectratio_lut[ASPECT_RATIO_CUSTOM].value = + (float)custom->width / custom->height; + return 0; } @@ -561,6 +564,9 @@ static int setting_action_start_custom_viewport_height(void *data) else custom->height = vp.full_height - custom->y; + aspectratio_lut[ASPECT_RATIO_CUSTOM].value = + (float)custom->width / custom->height; + return 0; } @@ -930,6 +936,9 @@ static int setting_uint_action_left_custom_viewport_width(void *data, bool wrapa else custom->width -= 1; + aspectratio_lut[ASPECT_RATIO_CUSTOM].value = + (float)custom->width / custom->height; + return 0; } @@ -952,6 +961,9 @@ static int setting_uint_action_right_custom_viewport_width(void *data, bool wrap else custom->width += 1; + aspectratio_lut[ASPECT_RATIO_CUSTOM].value = + (float)custom->width / custom->height; + return 0; } @@ -974,6 +986,9 @@ static int setting_uint_action_left_custom_viewport_height(void *data, bool wrap else custom->height -= 1; + aspectratio_lut[ASPECT_RATIO_CUSTOM].value = + (float)custom->width / custom->height; + return 0; } @@ -996,6 +1011,9 @@ static int setting_uint_action_right_custom_viewport_height(void *data, bool wra else custom->height += 1; + aspectratio_lut[ASPECT_RATIO_CUSTOM].value = + (float)custom->width / custom->height; + return 0; } @@ -2248,6 +2266,8 @@ static void general_write_handler(void *data) custom->y = 0; custom->width = ((custom->width + geom->base_width - 1) / geom->base_width) * geom->base_width; custom->height = ((custom->height + geom->base_height - 1) / geom->base_height) * geom->base_height; + aspectratio_lut[ASPECT_RATIO_CUSTOM].value = + (float)custom->width / custom->height; } } break;