X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Faboutprefs.C;h=f6fdde4ae21ced66cbf1fe0743de976c53e328a5;hp=d07ce4deac0d5ee77e97dab2596e7afd6cf65f4c;hb=b78b166faf60a1c7357f990b1e2fb0e70be29fee;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/aboutprefs.C b/cinelerra-5.1/cinelerra/aboutprefs.C index d07ce4de..f6fdde4a 100644 --- a/cinelerra-5.1/cinelerra/aboutprefs.C +++ b/cinelerra-5.1/cinelerra/aboutprefs.C @@ -47,8 +47,6 @@ void AboutPrefs::create_objects() { lock_window("AboutPrefs::create_objects"); int x, y; - - BC_Resources *resources = BC_WindowBase::get_resources(); // add_subwindow(new BC_Title(mwindow->theme->preferencestitle_x, @@ -99,12 +97,12 @@ void AboutPrefs::create_objects() about.append(new BC_ListBoxItem(msg)); } BC_ListBox *listbox; - add_subwindow(listbox = new BC_ListBox(x, y, 450, 280, + add_subwindow(listbox = new BC_ListBox(x, y, xS(450), yS(280), LISTBOX_TEXT, &about, 0, 0, 1)); - y += listbox->get_h() + get_text_height(LARGEFONT) + 10; + y += listbox->get_h() + get_text_height(LARGEFONT) + yS(10); } else - y += 300 + get_text_height(LARGEFONT) + 10; + y += yS(300) + get_text_height(LARGEFONT) + yS(10); set_font(LARGEFONT); set_color(resources->text_default); @@ -130,22 +128,17 @@ void AboutPrefs::create_objects() draw_text(x, y, REPOMAINTXT); #endif - x = get_w() - mwindow->theme->about_bg->get_w() - 10; + x = get_w() - mwindow->theme->about_bg->get_w() - xS(10); y = mwindow->theme->preferencesoptions_y; BC_Pixmap *temp_pixmap = new BC_Pixmap(this, mwindow->theme->about_bg, PIXMAP_ALPHA); - draw_pixmap(temp_pixmap, - x, - y); - + draw_pixmap(temp_pixmap, x, y); delete temp_pixmap; - - x += mwindow->theme->about_bg->get_w() + 10; + x += mwindow->theme->about_bg->get_w() + xS(10); y += get_text_height(LARGEFONT) * 2; - flash(); flush(); unlock_window();