View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008864 | ardour | bugs | public | 2022-01-21 20:35 | 2022-01-21 22:47 |
Reporter | SanbornFan | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Apple Macintosh | OS | MacOS | OS Version | 10.12 or later |
Product Version | 6.9 | ||||
Summary | 0008864: macOS VST2 plugin wrapper offsets gui by few pixels in both x and y directions so right side and bottom edge are chopped off | ||||
Description | macOS 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 Reproduce | Open a VST2 plugin such as LennarDigital Sylenth1. Drag the right side and bottom edge of the wrapper window to reveal missing pixels. | ||||
Tags | No tags attached. | ||||
|
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... |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-01-21 20:35 | SanbornFan | New Issue | |
2022-01-21 22:47 | x42 | Note Added: 0026310 |