X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=inline;f=cinelerra-5.1%2Fplugins%2Fnbodycuda%2Fnbodywindow.C;fp=cinelerra-5.1%2Fplugins%2Fnbodycuda%2Fnbodywindow.C;h=d5c2e9f9526ee93132d3e6b5bd84d55eab8245d9;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hp=c5c7766e442eb0b37527cd528088811c3d76be6a;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/nbodycuda/nbodywindow.C b/cinelerra-5.1/plugins/nbodycuda/nbodywindow.C index c5c7766e..d5c2e9f9 100644 --- a/cinelerra-5.1/plugins/nbodycuda/nbodywindow.C +++ b/cinelerra-5.1/plugins/nbodycuda/nbodywindow.C @@ -38,7 +38,7 @@ static const char *display_modes[] = { static const int num_display_modes = sizeof(display_modes)/sizeof(*display_modes); N_BodyWindow::N_BodyWindow(N_BodyMain *plugin) - : PluginClientWindow(plugin, 240, 200, 240, 200, 0) + : PluginClientWindow(plugin, xS(240), yS(200), xS(240), yS(200), 0) { this->plugin = plugin; press_x = press_y = 0; @@ -52,8 +52,8 @@ N_BodyWindow::~N_BodyWindow() void N_BodyWindow::create_objects() { - int x = 10, y = 10, pad = 5; - int x1 = 100; + int x = xS(10), y = yS(10), pad = xS(5); + int x1 = xS(100); BC_Title *title; add_subwindow(title = new BC_Title(x,y, _("NBody"), MEDIUMFONT, YELLOW)); y += title->get_h() + 2*pad; @@ -192,7 +192,7 @@ int N_BodyDrag::handle_event() } N_BodySetMode::N_BodySetMode(N_BodyWindow *gui, int x, int y, const char *text) - : BC_PopupTextBox(gui, 0, text, x, y, 100, 160) + : BC_PopupTextBox(gui, 0, text, x, y, xS(100), yS(160)) { this->gui = gui; } @@ -215,7 +215,7 @@ int N_BodySetMode::handle_event() N_BodySetDemo::N_BodySetDemo(N_BodyWindow *gui, int x, int y, const char *text) - : BC_PopupTextBox(gui, 0, text, x, y, 100, 160) + : BC_PopupTextBox(gui, 0, text, x, y, xS(100), yS(160)) { this->gui = gui; } @@ -240,7 +240,7 @@ int N_BodySetDemo::handle_event() } N_BodyNumBodies::N_BodyNumBodies(N_BodyWindow *gui, int x, int y, const char *text) - : BC_PopupTextBox(gui, 0, text, x, y, 100, 160) + : BC_PopupTextBox(gui, 0, text, x, y, xS(100), yS(160)) { this->gui = gui; }