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);
|
||||
|
||||
fprintf(stderr, "[sfizz] about to create view: %s\n", _name);
|
||||
|
||||
if (name != Vst::ViewType::kEditor)
|
||||
return nullptr;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ SfizzVstEditor::~SfizzVstEditor()
|
|||
|
||||
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());
|
||||
CFrame *frame = new CFrame(wsize, this);
|
||||
this->frame = frame;
|
||||
|
|
@ -42,7 +44,11 @@ bool PLUGIN_API SfizzVstEditor::open(void* parent, const VSTGUI::PlatformType& p
|
|||
createFrameContents();
|
||||
updateStateDisplay();
|
||||
|
||||
frame->open(parent, platformType, config);
|
||||
if (!frame->open(parent, platformType, config)) {
|
||||
fprintf(stderr, "[sfizz] error opening frame\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -254,4 +254,6 @@ function(plugin_add_vstgui NAME)
|
|||
|
||||
target_include_directories("${NAME}" PRIVATE
|
||||
external/steinberg/src)
|
||||
|
||||
target_compile_definitions("${NAME}" PRIVATE "SMTG_MODULE_IS_BUNDLE=1")
|
||||
endfunction()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue