Move the editor handling back to Vst2Bridge

Since we can have multiple editors in Vst3Bridge.
This commit is contained in:
Robbert van der Helm
2020-12-19 19:56:49 +01:00
parent b422f6fd42
commit a724b378fe
8 changed files with 62 additions and 38 deletions
-21
View File
@@ -18,24 +18,3 @@
HostBridge::HostBridge(boost::filesystem::path plugin_path)
: plugin_path(plugin_path) {}
void HostBridge::handle_win32_events() {
if (editor) {
editor->handle_win32_events();
} else {
MSG msg;
for (int i = 0; i < max_win32_messages &&
PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE);
i++) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
}
void HostBridge::handle_x11_events() {
if (editor) {
editor->handle_x11_events();
}
}