Skip to content

Commit

Permalink
A tiny logic pro resize fix
Browse files Browse the repository at this point in the history
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 bc32cb3)
  • Loading branch information
baconpaul committed Oct 11, 2024
1 parent bc32cb3 commit b8e4f77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/detail/auv2/auv2_shared.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 0 additions & 2 deletions src/detail/auv2/wrappedview.asinclude.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8e4f77

Please sign in to comment.