| 451 | } |
| 452 | |
| 453 | void 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 | |
| 471 | void VisualToolBase::GetLineClip(AssDialogue *diag, Vector2D &p1, Vector2D &p2, bool &inverse) { |
| 472 | inverse = false; |