forked from mia/Aegisub
Fix bounds checking in the rectangular clip visual tool with detached video
Originally committed to SVN as r5960.
This commit is contained in:
parent
009d99407b
commit
73ee949d55
1 changed files with 2 additions and 3 deletions
|
@ -105,9 +105,8 @@ bool VisualToolClip::InitializeHold() {
|
|||
|
||||
void VisualToolClip::UpdateHold() {
|
||||
// Limit to video area
|
||||
Vector2D zero(0, 0);
|
||||
cur_1 = zero.Max(video_res.Min(drag_start));
|
||||
cur_2 = zero.Max(video_res.Min(mouse_pos));
|
||||
cur_1 = video_pos.Max((video_pos + video_res).Min(drag_start));
|
||||
cur_2 = video_pos.Max((video_pos + video_res).Min(mouse_pos));
|
||||
|
||||
SetFeaturePositions();
|
||||
CommitHold();
|
||||
|
|
Loading…
Reference in a new issue