MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / SetAspectRatio

Method SetAspectRatio

src/video_controller.cpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void 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
209void VideoController::SetAspectRatio(AspectRatio type) {
210 ar_value = mid(.5, GetARFromType(type), 5.);

Callers 5

LoadUnloadFilesMethod · 0.80
LoadVideoMethod · 0.80
LoadListMethod · 0.80
operator()Method · 0.80
operator()Function · 0.80

Calls 1

midFunction · 0.70

Tested by

no test coverage detected