Fix finding the resource images on Windows OS
This commit is contained in:
parent
dd8b5d93a5
commit
126dd49e28
3 changed files with 11 additions and 1 deletions
|
|
@ -122,6 +122,8 @@ IPlugView* PLUGIN_API SfizzVstController::createView(FIDString _name)
|
||||||
{
|
{
|
||||||
ConstString name(_name);
|
ConstString name(_name);
|
||||||
|
|
||||||
|
fprintf(stderr, "[sfizz] about to create view: %s\n", _name);
|
||||||
|
|
||||||
if (name != Vst::ViewType::kEditor)
|
if (name != Vst::ViewType::kEditor)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,8 @@ SfizzVstEditor::~SfizzVstEditor()
|
||||||
|
|
||||||
bool PLUGIN_API SfizzVstEditor::open(void* parent, const VSTGUI::PlatformType& platformType)
|
bool PLUGIN_API SfizzVstEditor::open(void* parent, const VSTGUI::PlatformType& platformType)
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "[sfizz] about to open view with parent %p\n", parent);
|
||||||
|
|
||||||
CRect wsize(0, 0, _logo.getWidth(), _logo.getHeight());
|
CRect wsize(0, 0, _logo.getWidth(), _logo.getHeight());
|
||||||
CFrame *frame = new CFrame(wsize, this);
|
CFrame *frame = new CFrame(wsize, this);
|
||||||
this->frame = frame;
|
this->frame = frame;
|
||||||
|
|
@ -42,7 +44,11 @@ bool PLUGIN_API SfizzVstEditor::open(void* parent, const VSTGUI::PlatformType& p
|
||||||
createFrameContents();
|
createFrameContents();
|
||||||
updateStateDisplay();
|
updateStateDisplay();
|
||||||
|
|
||||||
frame->open(parent, platformType, config);
|
if (!frame->open(parent, platformType, config)) {
|
||||||
|
fprintf(stderr, "[sfizz] error opening frame\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -254,4 +254,6 @@ function(plugin_add_vstgui NAME)
|
||||||
|
|
||||||
target_include_directories("${NAME}" PRIVATE
|
target_include_directories("${NAME}" PRIVATE
|
||||||
external/steinberg/src)
|
external/steinberg/src)
|
||||||
|
|
||||||
|
target_compile_definitions("${NAME}" PRIVATE "SMTG_MODULE_IS_BUNDLE=1")
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue