int
VSTPluginUI::get_preferred_height ()
{
- int preferred_height = _vst->state()->height;
- preferred_height += _vst->state()->voffset;
- return preferred_height;
+ return _vst->state()->height + _vst->state()->voffset;
}
int
VSTPluginUI::get_preferred_width ()
{
- return _vst->state()->width;
+ return _vst->state()->width + _vst->state()->hoffset;
}
int
fst->has_editor = 0;
#ifdef PLATFORM_WINDOWS
fst->voffset = 36;
+ fst->hoffset = 0;
#else /* linux + wine */
fst->voffset = 24;
+ fst->hoffset = 6;
#endif
fst->program_set_without_editor = 0;
return fst;
{
if (fst->windows_window) {
#ifdef PLATFORM_WINDOWS
- SetWindowPos ((HWND)(fst->windows_window), 0, 0, fst->voffset, fst->width, fst->height, 0);
+ SetWindowPos ((HWND)(fst->windows_window), 0, fst->hoffset, fst->voffset, fst->width, fst->height, 0);
#else /* linux + wine */
- SetWindowPos ((HWND)(fst->windows_window), 0, 0, 0, fst->width, fst->height, 0);
+ SetWindowPos ((HWND)(fst->windows_window), 0, 0, 0, fst->width + fst->hoffset, fst->height + fst->voffset, 0);
#endif
ShowWindow ((HWND)(fst->windows_window), SW_SHOWNA);
}