From 8843679e1fbf3d8b2989da65a61e26270c5f42c4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 22 Feb 2014 02:30:57 +0100 Subject: fix minimum VST GUI window size (gtk padding) --- libs/fst/vstwin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/fst/vstwin.c') 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); } -- cgit v1.2.3