Adapt Editor and GUIComponents to recent VSTGUI changes
This commit is contained in:
parent
aaacd1450c
commit
a197e3a76d
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue