We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
m_rect
1 parent 1ba413e commit c210829Copy full SHA for c210829
src/editor/button_widget.cpp
@@ -25,7 +25,7 @@ ButtonWidget::ButtonWidget(SpritePtr sprite, const Vector& pos,
25
std::function<void()> sig_click) :
26
m_sprite(std::move(sprite)),
27
m_rect(pos, Sizef(static_cast<float>(m_sprite->get_width()),
28
- static_cast<float>(m_sprite->get_width()))),
+ static_cast<float>(m_sprite->get_height()))),
29
m_grab(false),
30
m_hover(false),
31
m_sig_click(std::move(sig_click))
0 commit comments