X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fvideowindowgui.C;h=351f544d38c5b573e8c746edcdb65f0f7ca44fcf;hp=252e57104644c7c08e3d3374080e8d21239ccb6d;hb=9b18af02dc4ccbf052ef9d70180a3d16c0f9848b;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/videowindowgui.C b/cinelerra-5.1/cinelerra/videowindowgui.C index 252e5710..351f544d 100644 --- a/cinelerra-5.1/cinelerra/videowindowgui.C +++ b/cinelerra-5.1/cinelerra/videowindowgui.C @@ -28,13 +28,13 @@ -#define CROPHANDLE_W 10 -#define CROPHANDLE_H 10 +#define CROPHANDLE_W xS(10) +#define CROPHANDLE_H yS(10) VideoWindowGUI::VideoWindowGUI(VideoWindow *thread, int w, int h) : BC_Window(_(PROGRAM_NAME ": Video out"), (int)BC_INFINITY, (int)BC_INFINITY, - w, h, 10, 10, 1, 1, 1) + w, h, xS(10), yS(10), 1, 1, 1) { this->thread = thread; } @@ -65,7 +65,7 @@ int VideoWindowGUI::resize_event(int w, int h) // new_h = h; // thread->get_full_sizes(full_w, full_h); // -// if(labs(full_w - new_w) < 50) +// if(labs(full_w - new_w) < xS(50)) // { // new_w = full_w; // new_h = full_h; @@ -73,8 +73,8 @@ int VideoWindowGUI::resize_event(int w, int h) // else // thread->fix_size(new_w, new_h, w, thread->mwindow->get_aspect_ratio()); // -// if(new_w < 10) new_w = 10; -// if(new_h < 10) new_h = 10; +// if(new_w < xS(10)) new_w = xS(10); +// if(new_h < yS(10)) new_h = yS(10); // w = thread->video_window_w = new_w; // h = new_h; //