diff --git a/plugins/editor/src/editor/Editor.cpp b/plugins/editor/src/editor/Editor.cpp index 81e5d37..4d722c2 100644 --- a/plugins/editor/src/editor/Editor.cpp +++ b/plugins/editor/src/editor/Editor.cpp @@ -792,7 +792,7 @@ void Editor::Impl::createFrameContents() #endif auto createAboutButton = [this, &backgroundAbout]( const CRect& bounds, int tag, const char*, CHoriTxtAlign, int) { - SHoverButton* btn = new SHoverButton(bounds, this, tag, backgroundAbout); + SHoverButton* btn = new SHoverButton(bounds, this, tag, 60, backgroundAbout); btn->OnHoverEnter = [this, btn]() { buttonHoverEnter(btn, "About sfizz..."); }; btn->OnHoverLeave = [this, btn]() { buttonHoverLeave(btn); }; return btn; diff --git a/plugins/editor/src/editor/GUIComponents.h b/plugins/editor/src/editor/GUIComponents.h index a0ce854..124ab24 100644 --- a/plugins/editor/src/editor/GUIComponents.h +++ b/plugins/editor/src/editor/GUIComponents.h @@ -190,9 +190,10 @@ public: const CRect& size, IControlListener* listener, int32_t tag, + CCoord heightOfOneImage, CBitmap* background, const CPoint& offset = CPoint (0, 0)) - : CKickButton(size, listener, tag, background, offset) + : CKickButton(size, listener, tag, heightOfOneImage, background, offset) {} CMouseEventResult onMouseEntered(CPoint&, const CButtonState&) override;