aspectratio_lut value needs to be changed too
This commit is contained in:
parent
c380b290d4
commit
05a91a8e47
|
@ -538,6 +538,9 @@ static int setting_action_start_custom_viewport_width(void *data)
|
||||||
else
|
else
|
||||||
custom->width = vp.full_width - custom->x;
|
custom->width = vp.full_width - custom->x;
|
||||||
|
|
||||||
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
||||||
|
(float)custom->width / custom->height;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -561,6 +564,9 @@ static int setting_action_start_custom_viewport_height(void *data)
|
||||||
else
|
else
|
||||||
custom->height = vp.full_height - custom->y;
|
custom->height = vp.full_height - custom->y;
|
||||||
|
|
||||||
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
||||||
|
(float)custom->width / custom->height;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -930,6 +936,9 @@ static int setting_uint_action_left_custom_viewport_width(void *data, bool wrapa
|
||||||
else
|
else
|
||||||
custom->width -= 1;
|
custom->width -= 1;
|
||||||
|
|
||||||
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
||||||
|
(float)custom->width / custom->height;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -952,6 +961,9 @@ static int setting_uint_action_right_custom_viewport_width(void *data, bool wrap
|
||||||
else
|
else
|
||||||
custom->width += 1;
|
custom->width += 1;
|
||||||
|
|
||||||
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
||||||
|
(float)custom->width / custom->height;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -974,6 +986,9 @@ static int setting_uint_action_left_custom_viewport_height(void *data, bool wrap
|
||||||
else
|
else
|
||||||
custom->height -= 1;
|
custom->height -= 1;
|
||||||
|
|
||||||
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
||||||
|
(float)custom->width / custom->height;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -996,6 +1011,9 @@ static int setting_uint_action_right_custom_viewport_height(void *data, bool wra
|
||||||
else
|
else
|
||||||
custom->height += 1;
|
custom->height += 1;
|
||||||
|
|
||||||
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
||||||
|
(float)custom->width / custom->height;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2248,6 +2266,8 @@ static void general_write_handler(void *data)
|
||||||
custom->y = 0;
|
custom->y = 0;
|
||||||
custom->width = ((custom->width + geom->base_width - 1) / geom->base_width) * geom->base_width;
|
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;
|
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;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue