Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/view.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/view.cc b/src/client/view.cc
index d8346cb..86f9af0 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -239,12 +239,12 @@ void View::draw()
}
// reposition chat widget
- if (!view_chat->small_view()) {
- view_chat->set_location(font()->width(), view_devinfo->top() + view_devinfo->height() + font()->height());
- view_chat->set_size(width() - font()->width() * 16, height() - view_chat->top() - font()->height() * 8);
+ if (view_chat->small_view()) {
+ view_chat->set_size(width() - font()->width() * 8, font()->height() * 2);
+ view_chat->set_location(font()->width() * 4, height() - font()->height() * 4 - view_chat->height());
} else {
- view_chat->set_size(width() - font()->width() * 16, font()->height() * 2);
- view_chat->set_location(font()->width(), height() - font()->height() * 8 - view_chat->height());
+ view_chat->set_size(width() - font()->width() * 8, height() - font()->height() * 8);
+ view_chat->set_location(font()->width() * 4, font()->height() * 4);
}
view_chat->event_resize();