Adapt Editor and GUIComponents to recent VSTGUI changes

This commit is contained in:
redtide 2023-05-16 11:07:57 +02:00
parent aaacd1450c
commit a197e3a76d
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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;