summaryrefslogtreecommitdiff
path: root/libs/fst
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-02-22 02:30:57 +0100
committerRobin Gareus <robin@gareus.org>2014-02-22 03:11:49 +0100
commit8843679e1fbf3d8b2989da65a61e26270c5f42c4 (patch)
tree25d6195b6d344b97a6e9b7e0c74c165f1ec644df /libs/fst
parentdfdf9a35f1e990c45f35632eb993eb67f4f7abf8 (diff)
fix minimum VST GUI window size (gtk padding)
Diffstat (limited to 'libs/fst')
-rw-r--r--libs/fst/vstwin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/fst/vstwin.c b/libs/fst/vstwin.c
index 75bf2372da..58ce0fd235 100644
--- a/libs/fst/vstwin.c
+++ b/libs/fst/vstwin.c
@@ -224,8 +224,10 @@ fst_new (void)
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;
@@ -463,9 +465,9 @@ fst_move_window_into_view (VSTState* 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);
}