Skip to content

Commit

Permalink
Implement NATIVE_HOST_OPCODE_UI_RESIZE
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Apr 20, 2024
1 parent 10c9089 commit 295f1e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion carla
10 changes: 8 additions & 2 deletions plugins/Common/IldaeilUI.cpp
Expand Up @@ -382,9 +382,15 @@ class IldaeilUI : public UI,
repaint();
}

void resizeUI(uint32_t, uint32_t)
void resizeUI(const uint32_t width, const uint32_t height)
{
// unused for now
if (fDrawingState != kDrawingPluginEmbedUI)
return;

const uint extraHeight = kButtonHeight * getScaleFactor() + ImGui::GetStyle().WindowPadding.y * 2;

fShowingHostWindow = true;
fNextSize = Size<uint>(width, height + extraHeight);
}

void closeUI()
Expand Down

0 comments on commit 295f1e7

Please sign in to comment.