: BC_Window(_(PROGRAM_NAME ": Feather Edits"),
mwindow->gui->get_abs_cursor_x(),
mwindow->gui->get_abs_cursor_y(),
- 340,
- 140)
+ xS(340), yS(140))
{
this->feather_samples = feather_samples;
}
int FeatherEditsWindow::create_objects(int audio, int video)
{
+ int xs10 = xS(10);
+ int ys10 = yS(10), ys20 = yS(20);
lock_window("FeatherEditsWindow::create_objects");
- int x = 10;
- int y = 10;
+ int x = xs10, y = ys10;
this->audio = audio;
this->video = video;
else
add_subwindow(new BC_Title(x, y, _("Feather by how many frames:")));
- y += 20;
+ y += ys20;
char string[1024];
sprintf(string, "%d", feather_samples);
add_subwindow(text = new FeatherEditsTextBox(this, string, x, y));
- y += 20;
+ y += ys20;
add_subwindow(new BC_OKButton(x, y));
add_subwindow(new BC_CancelButton(x, y));
return 0;
}
FeatherEditsTextBox::FeatherEditsTextBox(FeatherEditsWindow *window, char *text, int x, int y)
- : BC_TextBox(x, y, 100, 1, text)
+ : BC_TextBox(x, y, xS(100), 1, text)
{
this->window = window;
}
window->feather_samples = atol(get_text());
return 0;
}
+