From b8e4f77fb21f59975857c9392edee5a8658be00d Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Fri, 11 Oct 2024 15:43:34 -0400 Subject: [PATCH] A tiny logic pro resize fix Rather than setSize we want setFrame(0,0,w,h) to avoid repositioning imporerly in the logic wrapped window with auv2 resize (small fix to bc32cb3e4eedc5806bc73a284c43f9e5aa24a87d) --- src/detail/auv2/auv2_shared.mm | 2 +- src/detail/auv2/wrappedview.asinclude.mm | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/detail/auv2/auv2_shared.mm b/src/detail/auv2/auv2_shared.mm index cee7c208..0d26d7cf 100644 --- a/src/detail/auv2/auv2_shared.mm +++ b/src/detail/auv2/auv2_shared.mm @@ -12,7 +12,7 @@ bool auv2shared_mm_request_resize(const clap_window_t* win, uint32_t w, uint32_t if (!win) return false; auto* nsv = (NSView*)win; - [nsv setFrameSize:NSMakeSize(w, h)]; + [nsv setFrame:NSMakeRect(0, 0, w, h)]; return false; } diff --git a/src/detail/auv2/wrappedview.asinclude.mm b/src/detail/auv2/wrappedview.asinclude.mm index 0d98cd6e..2b4a6021 100644 --- a/src/detail/auv2/wrappedview.asinclude.mm +++ b/src/detail/auv2/wrappedview.asinclude.mm @@ -157,8 +157,6 @@ - (void)dealloc } - (void)setFrame:(NSRect)newSize { - LOGINFO("[clap-wrapper] new size"); - [super setFrame:newSize]; auto gui = ui._plugin->_ext._gui; gui->set_scale(ui._plugin->_plugin, 1.0);