From bfbe5c0745e4860ab5123c9d559d0f2aec27334c Mon Sep 17 00:00:00 2001 From: tentacle Date: Wed, 22 Feb 2006 19:24:17 +0000 Subject: [PATCH] more movement options Originally committed to SVN as r112. --- core/video_display.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/video_display.cpp b/core/video_display.cpp index 6c4a03d63..750584781 100644 --- a/core/video_display.cpp +++ b/core/video_display.cpp @@ -285,6 +285,22 @@ void VideoDisplay::OnMouseEvent(wxMouseEvent& event) { curline->Movement->Frames[localframe].Pos.x += float(x-MouseDownX); curline->Movement->Frames[localframe].Pos.y += float(y-MouseDownY); } + else if( MovementEdit==3 ) + { + for( int i=0;i<=localframe;i++ ) + { + curline->Movement->Frames[i].Pos.x += float(x-MouseDownX); + curline->Movement->Frames[i].Pos.y += float(y-MouseDownY); + } + } + else if( MovementEdit==4 ) + { + for( int i=localframe;iMovement->Frames.size();i++ ) + { + curline->Movement->Frames[i].Pos.x += float(x-MouseDownX); + curline->Movement->Frames[i].Pos.y += float(y-MouseDownY); + } + } } MouseDownX = x; MouseDownY = y;