| 199 | } |
| 200 | |
| 201 | void VideoController::SetAspectRatio(double value) { |
| 202 | ar_type = AspectRatio::Custom; |
| 203 | ar_value = mid(.5, value, 5.); |
| 204 | context->ass->Properties.ar_mode = (int)ar_type; |
| 205 | context->ass->Properties.ar_value = ar_value; |
| 206 | ARChange(ar_type, ar_value); |
| 207 | } |
| 208 | |
| 209 | void VideoController::SetAspectRatio(AspectRatio type) { |
| 210 | ar_value = mid(.5, GetARFromType(type), 5.); |
no test coverage detected