potential fix for some AU plugin UIs not displaying
authorRobin Gareus <robin@gareus.org>
Tue, 27 Oct 2015 22:11:45 +0000 (23:11 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 27 Oct 2015 22:12:53 +0000 (23:12 +0100)
looks like not all AU plugin GUIs redraw themselves if
[win setAutodisplay:1] is unnot.

A user reported that some Waves plugins and Shattered Glass 32bit AUs
are blank in 4.4 on 32bit OSX.

see also 5eefdf7 and earlier AU/API changes.

gtk2_ardour/au_pluginui.mm

index a9640174998ccb023efa72866645adc63aec1d42..54d3ab2ffee66ae2827631010a32c7e6d2c09553 100644 (file)
@@ -813,12 +813,11 @@ AUPluginUI::lower_box_size_allocate (Gtk::Allocation& allocation)
 gboolean
 AUPluginUI::lower_box_expose (GdkEventExpose* event)
 {
-#if 0 // AU view magically redraws by itself
        [au_view drawRect:NSMakeRect(event->area.x,
                        event->area.y,
                        event->area.width,
                        event->area.height)];
-#endif
+
        /* hack to keep ardour responsive
         * some UIs (e.g Addictive Drums) completely hog the CPU
         */