diff options
Diffstat (limited to 'src/ui/widget.cc')
-rw-r--r-- | src/ui/widget.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget.cc b/src/ui/widget.cc index cc53c9f..b1157d5 100644 --- a/src/ui/widget.cc +++ b/src/ui/widget.cc @@ -232,12 +232,12 @@ void Widget::set_size(const math::Vector2f &size) void Widget::set_width(const float w) { - widget_size.x = w; + widget_size[0] = w; } void Widget::set_height(const float h) { - widget_size.y = h; + widget_size[1] = h; } Widget::Children::iterator Widget::find_child(Widget *child) |