add BC_SCALE env var for hi def monitors, cleanup theme data
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / filesndfile.C
index 9351378b97e4a7f1a2d09f75c04155f3532c733f..ffd59b46fdd2967fb7f61480bf16c2b25e75f810 100644 (file)
@@ -371,10 +371,8 @@ void FileSndFile::get_parameters(BC_WindowBase *parent_window,
 
 SndFileConfig::SndFileConfig(BC_WindowBase *parent_window, Asset *asset)
  : BC_Window(_(PROGRAM_NAME ": Audio Compression"),
-       parent_window->get_abs_cursor_x(1),
-       parent_window->get_abs_cursor_y(1),
-       250,
-       250)
+       parent_window->get_abs_cursor_x(1), parent_window->get_abs_cursor_y(1),
+       xS(250), yS(250))
 {
        this->parent_window = parent_window;
        this->asset = asset;
@@ -392,8 +390,9 @@ SndFileConfig::~SndFileConfig()
 
 void SndFileConfig::create_objects()
 {
+       int xs10 = xS(10);
        lock_window("SndFileConfig::create_objects");
-       int x = 10, y = 10;
+       int x = xs10, y = yS(10);
 
        bits_popup = 0;
        switch(asset->format)
@@ -402,27 +401,27 @@ void SndFileConfig::create_objects()
                case FILE_PCM:
                case FILE_AIFF:
                        add_tool(new BC_Title(x, y, _("Compression:")));
-                       y += 25;
+                       y += yS(25);
                        if(asset->format == FILE_WAV)
                                bits_popup = new BitsPopup(this, x, y, &asset->bits, 0, 0, 1, 1, 0);
                        else
                                bits_popup = new BitsPopup(this, x, y, &asset->bits, 0, 0, 0, 0, 0);
-                       y += 40;
+                       y += yS(40);
                        bits_popup->create_objects();
                        break;
        }
 
-       x = 10;
+       x = xs10;
        if(asset->format != FILE_AU)
                add_subwindow(new BC_CheckBox(x, y, &asset->dither, _("Dither")));
-       y += 30;
+       y += yS(30);
        if(asset->format == FILE_PCM)
        {
                add_subwindow(new BC_CheckBox(x, y, &asset->signed_, _("Signed")));
-               y += 35;
+               y += yS(35);
                add_subwindow(new BC_Title(x, y, _("Byte order:")));
-               add_subwindow(hilo = new SndFileHILO(this, x + 100, y));
-               add_subwindow(lohi = new SndFileLOHI(this, x + 170, y));
+               add_subwindow(hilo = new SndFileHILO(this, x + xS(100), y));
+               add_subwindow(lohi = new SndFileLOHI(this, x + xS(170), y));
        }
        add_subwindow(new BC_OKButton(this));
        show_window(1);