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/client/chat.cc | |
parent | 95cc140404c6524ea16e193e1421e826b239114f (diff) |
more constness
Diffstat (limited to 'src/client/chat.cc')
-rw-r--r-- | src/client/chat.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/chat.cc b/src/client/chat.cc index 93ba4b0..137e6b1 100644 --- a/src/client/chat.cc +++ b/src/client/chat.cc @@ -183,14 +183,14 @@ void Chat::resize() const float margin = 8.0f; math::Vector2f s(size()); - s.x -= margin*2; - s.y -= margin*2; + s[0] -= margin*2; + s[1] -= margin*2; chat_scrollpane->set_location(margin, margin); - chat_scrollpane->set_size(s.x, s.y - font()->height() *1.5f); + chat_scrollpane->set_size(s.width(), s.height() - font()->height() *1.5f); chat_input->set_location(margin, height() - font()->height() - margin); - chat_input->set_size(s.x, font()->height()); + chat_input->set_size(s.width(), font()->height()); } |