X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Fcropvideo.C;h=f1c2abf57d83321287bd8be42f19c45b7a3abb77;hb=a19a685a46ddc630010788707d9e5b9d2342af46;hp=c6655236a21e4292ca85cf2eb2345f774445fa77;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/cropvideo.C b/cinelerra-5.1/cinelerra/cropvideo.C index c6655236..f1c2abf5 100644 --- a/cinelerra-5.1/cinelerra/cropvideo.C +++ b/cinelerra-5.1/cinelerra/cropvideo.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #include "cropvideo.h" @@ -67,7 +67,7 @@ void CropVideo::run() offsets[1] = -(mwindow->video_window->gui->y1 + mwindow->video_window->gui->y2 - mwindow->session->output_h) / 2; offsets[2] = offsets[3] = 0; // mwindow->undo->update_undo_edits(_("Crop"), 0); - + mwindow->tracks->scale_video(dummy_dimension, offsets, 0); mwindow->session->track_w = mwindow->video_window->gui->x2 - mwindow->video_window->gui->x1; mwindow->session->track_h = mwindow->video_window->gui->y2 - mwindow->video_window->gui->y1; @@ -106,13 +106,13 @@ CropVideoWindow::~CropVideoWindow() void CropVideoWindow::create_objects() { + lock_window("CropVideoWindow::create_objects"); int x = 10, y = 10; add_subwindow(new BC_Title(x, y, _("Select a region to crop in the video output window"))); y += 30; add_subwindow(new BC_OKButton(x, y)); x = get_w() - 100; add_subwindow(new BC_CancelButton(x, y)); + unlock_window(); } - -