summaryrefslogtreecommitdiff
path: root/libs/fst
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-04-18 01:54:59 +0200
committerRobin Gareus <robin@gareus.org>2014-04-18 01:54:59 +0200
commit06b700abf28ba92c1356113536e174b3d64e5de5 (patch)
tree8c1b0395630da9e1e82f96573df8c2f67fc76911 /libs/fst
parent2e63b84a103213e7368184a697b51f0151d465b3 (diff)
fix VST GUI swallowing for windows
Diffstat (limited to 'libs/fst')
-rw-r--r--libs/fst/vstwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/fst/vstwin.c b/libs/fst/vstwin.c
index a55d4e59aa..27fb3cbead 100644
--- a/libs/fst/vstwin.c
+++ b/libs/fst/vstwin.c
@@ -223,7 +223,7 @@ fst_new (void)
fst->n_pending_keys = 0;
fst->has_editor = 0;
#ifdef PLATFORM_WINDOWS
- fst->voffset = 36;
+ fst->voffset = 50;
fst->hoffset = 0;
#else /* linux + wine */
fst->voffset = 24;
@@ -465,7 +465,7 @@ fst_move_window_into_view (VSTState* fst)
{
if (fst->windows_window) {
#ifdef PLATFORM_WINDOWS
- SetWindowPos ((HWND)(fst->windows_window), 0, fst->hoffset, fst->voffset, fst->width, fst->height, 0);
+ SetWindowPos ((HWND)(fst->windows_window), 0, fst->hoffset, fst->voffset, fst->width + fst->hoffset, fst->height + fst->voffset, 0);
#else /* linux + wine */
SetWindowPos ((HWND)(fst->windows_window), 0, 0, 0, fst->width + fst->hoffset, fst->height + fst->voffset, 0);
#endif