Revert "Debug AU plugin window size issues on macOS/M1"
This reverts commit 81322a4ac9
.
This commit is contained in:
parent
81322a4ac9
commit
5a0b22f8a4
@ -18,8 +18,6 @@
|
|||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define AU_DEBUG_PRINT
|
|
||||||
|
|
||||||
#undef Marker
|
#undef Marker
|
||||||
#define Marker FuckYouAppleAndYourLackOfNameSpaces
|
#define Marker FuckYouAppleAndYourLackOfNameSpaces
|
||||||
|
|
||||||
@ -237,12 +235,10 @@ static uint32_t block_plugin_redraws = 0;
|
|||||||
static const uint32_t minimum_redraw_rate = 30; /* frames per second */
|
static const uint32_t minimum_redraw_rate = 30; /* frames per second */
|
||||||
static const uint32_t block_plugin_redraw_count = 15; /* number of combined plugin redraws to block, if blocking */
|
static const uint32_t block_plugin_redraw_count = 15; /* number of combined plugin redraws to block, if blocking */
|
||||||
|
|
||||||
#if (defined __ppc__ || MAC_OS_X_VERSION_MAX_ALLOWED >= 110000)
|
#ifdef __ppc__
|
||||||
|
|
||||||
/* PowerPC versions of OS X do not support libdispatch, which we use below when swizzling objective C. But they also don't have Retina
|
/* PowerPC versions of OS X do not support libdispatch, which we use below when swizzling objective C. But they also don't have Retina
|
||||||
* which is the underlying reason for this code. So just skip it on those CPUs.
|
* which is the underlying reason for this code. So just skip it on those CPUs.
|
||||||
*
|
|
||||||
* Also this is probably not relevant anymore on M1/BigSur, let's see
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -692,10 +688,6 @@ AUPluginUI::create_cocoa_view ()
|
|||||||
req_width = frame.size.width;
|
req_width = frame.size.width;
|
||||||
req_height = frame.size.height;
|
req_height = frame.size.height;
|
||||||
|
|
||||||
#ifdef AU_DEBUG_PRINT
|
|
||||||
std::cerr << "NSView initial size: " << req_width << " x " << req_height << "\n";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
resizable = [au_view autoresizingMask];
|
resizable = [au_view autoresizingMask];
|
||||||
|
|
||||||
low_box.queue_resize ();
|
low_box.queue_resize ();
|
||||||
@ -909,12 +901,6 @@ AUPluginUI::cocoa_view_resized ()
|
|||||||
req_width = new_frame.size.width;
|
req_width = new_frame.size.width;
|
||||||
req_height = new_frame.size.height;
|
req_height = new_frame.size.height;
|
||||||
|
|
||||||
#ifdef AU_DEBUG_PRINT
|
|
||||||
std::cerr << "NSView resized: " << req_width << " x " << req_height << "\n";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//low_box.queue_resize ();
|
|
||||||
|
|
||||||
plugin_requested_resize = 0;
|
plugin_requested_resize = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user