View Issue Details

IDProjectCategoryView StatusLast Update
0008864ardourbugspublic2022-01-21 22:47
ReporterSanbornFan Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformApple MacintoshOSMacOSOS Version10.12 or later
Product Version6.9 
Summary0008864: macOS VST2 plugin wrapper offsets gui by few pixels in both x and y directions so right side and bottom edge are chopped off
DescriptionmacOS VST2 plugin wrapper offsets gui by few pixels in both x and y directions. Since the wrapper is sized exactly to fit the plugin then the right side and bottom edge are truncated.

This is not consistent with VST3 and AU plugin wrappers where gui is positioned correctly at 0,0
Windows and Linux versions are also correct. It is only macOS VST2 wrapper that has the problem.

Call to gtk_widget_translate_coordinates appears to be offsetting 8 units(pixels?) in x direction and 6 in y direction
file: mac_vst_plugin_ui.mm line: 212
void
MacVSTPluginUI::lower_box_size_allocate (Gtk::Allocation& allocation)
{
    gint xx, yy;
    gtk_widget_translate_coordinates(
            GTK_WIDGET(low_box.gobj()),
            GTK_WIDGET(low_box.get_parent()->gobj()),
            8, 6, &xx, &yy);
    [_ns_view setFrame:NSMakeRect (xx, yy, allocation.get_width (), allocation.get_height ())];
    NSArray* subviews = [_ns_view subviews];
    for (unsigned long i = 0; i < [subviews count]; ++i) {
        NSView* subview = [subviews objectAtIndex:i];
        [subview setFrame:NSMakeRect (0, 0, allocation.get_width (), allocation.get_height ())];
        break; /* only resize first subview */
    }
}
Steps To ReproduceOpen a VST2 plugin such as LennarDigital Sylenth1. Drag the right side and bottom edge of the wrapper window to reveal missing pixels.
TagsNo tags attached.

Activities

x42

2022-01-21 22:47

administrator   ~0026310

This dates back to https://github.com/Ardour/ardour/commit/5b28e0bc6fa036464a3f4cf13300819f805d39d4
spacing corresponds to the container (box) spacing. Chances are that those have changed since...

Issue History

Date Modified Username Field Change
2022-01-21 20:35 SanbornFan New Issue
2022-01-21 22:47 x42 Note Added: 0026310