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

Method GetLineScale

src/visual_tool.cpp:453–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453void VisualToolBase::GetLineScale(AssDialogue *diag, Vector2D &scale) {
454 float x = 100.f, y = 100.f;
455
456 if (AssStyle *style = c->ass->GetStyle(diag->Style)) {
457 x = style->scalex;
458 y = style->scaley;
459 }
460
461 auto blocks = diag->ParseTags();
462
463 if (param_vec tag = find_tag(blocks, "\\fscx"))
464 x = tag->front().Get(x);
465 if (param_vec tag = find_tag(blocks, "\\fscy"))
466 y = tag->front().Get(y);
467
468 scale = Vector2D(x, y);
469}
470
471void VisualToolBase::GetLineClip(AssDialogue *diag, Vector2D &p1, Vector2D &p2, bool &inverse) {
472 inverse = false;

Callers

nothing calls this directly

Calls 5

find_tagFunction · 0.85
Vector2DClass · 0.85
GetStyleMethod · 0.45
ParseTagsMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected