diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-16 17:34:00 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-16 17:34:00 +0000 |
commit | d763e294f44eb38b94bf7e2055b77a982b72b7c0 (patch) | |
tree | 37f91c6b7fee58fcecfbfc54dda3f71eb8617b9f /src/ui/widget.cc | |
parent | 95cc140404c6524ea16e193e1421e826b239114f (diff) |
more constness
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) |