Add Win32 embedding

This commit is contained in:
Hyunin Song
2017-11-07 10:47:24 +09:00
parent b0f64dea7f
commit 7da7a70d60
5 changed files with 53 additions and 20 deletions

View File

@@ -199,6 +199,10 @@ QString ConfigManager::vstEmbedMethod() const
}
#endif
#ifdef LMMS_BUILD_WIN32
defaultMethod = "win32";
#endif
return value( "ui", "vstembedmethod", defaultMethod );
}

View File

@@ -347,6 +347,10 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) :
m_vstEmbedComboBox->addItem( tr( "Embed using Qt API" ), "qt" );
#endif
#ifdef LMMS_BUILD_WIN32
m_vstEmbedComboBox->addItem( tr( "Embed using native Win32 API" ), "win32" );
#endif
#ifdef LMMS_BUILD_LINUX
if ( QX11Info::isPlatformX11() ) {
m_vstEmbedComboBox->addItem( tr( "Embed using XEmbed protocol" ), "xembed" );