Initialize the VST editor rect with correct size
This commit is contained in:
parent
3e57151ec9
commit
a002b994f4
1 changed files with 4 additions and 2 deletions
|
|
@ -13,8 +13,10 @@
|
||||||
|
|
||||||
using namespace VSTGUI;
|
using namespace VSTGUI;
|
||||||
|
|
||||||
|
static ViewRect sfizzUiViewRect {0, 0, 684, 684};
|
||||||
|
|
||||||
SfizzVstEditor::SfizzVstEditor(void *controller)
|
SfizzVstEditor::SfizzVstEditor(void *controller)
|
||||||
: VSTGUIEditor(controller),
|
: VSTGUIEditor(controller, &sfizzUiViewRect),
|
||||||
_logo("logo.png")
|
_logo("logo.png")
|
||||||
{
|
{
|
||||||
getController()->addSfizzStateListener(this);
|
getController()->addSfizzStateListener(this);
|
||||||
|
|
@ -29,7 +31,7 @@ bool PLUGIN_API SfizzVstEditor::open(void* parent, const VSTGUI::PlatformType& p
|
||||||
{
|
{
|
||||||
fprintf(stderr, "[sfizz] about to open view with parent %p\n", parent);
|
fprintf(stderr, "[sfizz] about to open view with parent %p\n", parent);
|
||||||
|
|
||||||
CRect wsize(0, 0, _logo.getWidth(), _logo.getHeight());
|
CRect wsize(0, 0, sfizzUiViewRect.getWidth(), sfizzUiViewRect.getHeight());
|
||||||
CFrame *frame = new CFrame(wsize, this);
|
CFrame *frame = new CFrame(wsize, this);
|
||||||
this->frame = frame;
|
this->frame = frame;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue