Minor editor fixes

This commit is contained in:
redtide 2023-05-18 12:56:20 +02:00
parent a3f3274204
commit ad751011ca
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -236,9 +236,9 @@ CMouseEventResult SAboutDialog::onMouseDown(CPoint& where, const CButtonState& b
} }
#if VSTGUI_MORE_THAN_4_10 #if VSTGUI_MORE_THAN_4_10
void SAboutDialog::onKeyboardEvent (KeyboardEvent& event, CFrame* frame) void SAboutDialog::onKeyboardEvent(KeyboardEvent& event, CFrame* frame)
{ {
auto vstKeyCode = toVstKeyCode (event); auto vstKeyCode = toVstKeyCode(event);
if (event.type == EventType::KeyDown && vstKeyCode.virt == VKEY_ESCAPE) if (event.type == EventType::KeyDown && vstKeyCode.virt == VKEY_ESCAPE)
{ {
setVisible(false); setVisible(false);

View file

@ -33,7 +33,7 @@ public:
void setPluginHost(const std::string& pluginHost); void setPluginHost(const std::string& pluginHost);
#if VSTGUI_MORE_THAN_4_10 #if VSTGUI_MORE_THAN_4_10
void onKeyboardEvent (KeyboardEvent& event, CFrame* frame) override; void onKeyboardEvent(KeyboardEvent&, CFrame*);
#else #else
int32_t onKeyDown(const VstKeyCode& code, CFrame* frame) override; int32_t onKeyDown(const VstKeyCode& code, CFrame* frame) override;
int32_t onKeyUp(const VstKeyCode& code, CFrame* frame) override; int32_t onKeyUp(const VstKeyCode& code, CFrame* frame) override;

View file

@ -929,7 +929,7 @@ void Editor::Impl::createFrameContents()
cb->setRoundRectRadius(5.0); cb->setRoundRectRadius(5.0);
return cb; return cb;
}; };
auto createHoverBox = [this, &palette](const CRect& bounds, int, const char* label, CHoriTxtAlign align, int fontsize) { auto createHoverBox = [](const CRect& bounds, int, const char* label, CHoriTxtAlign align, int fontsize) {
CTextLabel* lbl = new CTextLabel(bounds, label); CTextLabel* lbl = new CTextLabel(bounds, label);
auto font = makeOwned<CFontDesc>("Roboto", fontsize); auto font = makeOwned<CFontDesc>("Roboto", fontsize);
#if 0 #if 0