X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fassetedit.C;h=4df0f70a40ec52b27e363ae182d35b87146060a2;hb=853407b57330e275b6c58432c678159b2eac00db;hp=0a417e4bf7175775ec737b7a79e5e3c28445c700;hpb=4a028c75bea81ad0f03a8004eb076dfff718a469;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/assetedit.C b/cinelerra-5.1/cinelerra/assetedit.C index 0a417e4b..4df0f70a 100644 --- a/cinelerra-5.1/cinelerra/assetedit.C +++ b/cinelerra-5.1/cinelerra/assetedit.C @@ -193,8 +193,8 @@ int AssetEdit::window_height() h += 210; if( indexable->is_asset ) { Asset *asset = (Asset *)indexable; - if( asset->format == FILE_MPEG || - asset->format == FILE_FFMPEG ) h += 42; + if( File::can_scale_input(asset) ) + h += 42; } } return h; @@ -498,7 +498,7 @@ void AssetEditWindow::create_objects() add_subwindow(win_height); y += win_height->get_h() + 5; - if( asset && (asset->format == FILE_MPEG || asset->format == FILE_FFMPEG ) ) { + if( asset && File::can_scale_input(asset) ) { y += 5; x = x1; add_subwindow(new BC_Title(x, y, _("Actual width:"))); @@ -875,7 +875,6 @@ DetailAssetButton::DetailAssetButton(AssetEditWindow *fwindow, int x, int y) : BC_GenericButton(x, y, _("Detail")) { this->fwindow = fwindow; - set_underline(0); } DetailAssetButton::~DetailAssetButton() @@ -937,10 +936,12 @@ void DetailAssetWindow::create_objects() break; } } + lock_window("DetailAssetWindow::create_objects"); text = new BC_ScrollTextBox(this, x, y, get_w()-32, 23, info, -len); text->create_objects(); text->set_text_row(0); add_subwindow(new BC_OKButton(this)); show_window(); + unlock_window(); } void DetailAssetDialog::start(Asset *asset, int x, int y)