X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fswapframes%2Fswapframes.C;h=69b395f6c86e17b31ea728ef1baad28edd07ee2e;hb=HEAD;hp=6e37f7a06429ab7e53da524ccc3fcd4443c13423;hpb=54cc56bff09f5004b2a6cd454375f06e56acf5a0;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/swapframes/swapframes.C b/cinelerra-5.1/plugins/swapframes/swapframes.C index 6e37f7a0..69b395f6 100644 --- a/cinelerra-5.1/plugins/swapframes/swapframes.C +++ b/cinelerra-5.1/plugins/swapframes/swapframes.C @@ -184,10 +184,10 @@ int SwapFramesReset::handle_event() SwapFramesWindow::SwapFramesWindow(SwapFrames *plugin) : PluginClientWindow(plugin, - 260, - 135, - 260, - 135, + xS(260), + yS(135), + xS(260), + yS(135), 0) { this->plugin = plugin; @@ -195,23 +195,25 @@ SwapFramesWindow::SwapFramesWindow(SwapFrames *plugin) void SwapFramesWindow::create_objects() { - int x = 10, y = 10; + int xs10 = xS(10); + int ys5 = yS(5), ys10 = yS(10), ys35 = yS(35); + int x = xs10, y = ys10; add_subwindow(on = new SwapFramesOn(plugin, x, y)); - y += on->get_h() + 5; + y += on->get_h() + ys5; BC_Bar *bar; - add_subwindow(bar = new BC_Bar(x, y, get_w() - x * 2)); - y += bar->get_h() + 5; + add_subwindow(bar = new BC_Bar(x, y, get_w() - x * xS(2))); + y += bar->get_h() + ys5; add_subwindow(swap_even = new SwapFramesEven(plugin, this, x, y)); - y += swap_even->get_h() + 5; + y += swap_even->get_h() + ys5; add_subwindow(swap_odd = new SwapFramesOdd(plugin, this, x, y)); - y += 35; + y += ys35; add_subwindow(reset = new SwapFramesReset(plugin, this, x, y)); show_window();