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

Method SetZoom

src/video_display.cpp:380–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void VideoDisplay::SetZoom(double value) {
381 if (value == 0) return;
382 zoomValue = std::max(value, .125);
383 size_t selIndex = zoomValue / .125 - 1;
384 if (selIndex < zoomBox->GetCount())
385 zoomBox->SetSelection(selIndex);
386 zoomBox->ChangeValue(fmt_wx("%g%%", zoomValue * 100.));
387 con->ass->Properties.video_zoom = zoomValue;
388 UpdateSize();
389}
390
391void VideoDisplay::SetZoomFromBox(wxCommandEvent &) {
392 int sel = zoomBox->GetSelection();

Callers 7

OnVideoOpenMethod · 0.80
LoadUnloadFilesMethod · 0.80
operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80
video_zoom_inClass · 0.80
video_zoom_outClass · 0.80

Calls 2

ChangeValueMethod · 0.80
SetSelectionMethod · 0.45

Tested by

no test coverage detected