Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-05 19:05:50 +0000
committerStijn Buys <ingar@osirion.org>2008-10-05 19:05:50 +0000
commit9c3baab33a0fa48e7379f0485116452779a1cd37 (patch)
tree12f76da066d4fe7e062ff9cf33dd75fd80e0154e /src/client/video.cc
parenta8c367416c28edb47c8f8c447b515cca4080adc2 (diff)
interface with ui library
Diffstat (limited to 'src/client/video.cc')
-rw-r--r--src/client/video.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/video.cc b/src/client/video.cc
index ef1f82e..4046260 100644
--- a/src/client/video.cc
+++ b/src/client/video.cc
@@ -20,6 +20,7 @@
#include "core/core.h"
#include "filesystem/filesystem.h"
#include "sys/sys.h"
+#include "ui/ui.h"
#include <SDL/SDL.h>
@@ -70,6 +71,12 @@ void reset()
// recalculate the video aspect
render::Camera::set_aspect(width, height);
+ // resize user interface
+ if (ui::root()) {
+ ui::root()->set_size((float) width, (float) height);
+ ui::root()->resize_event();
+ }
+
// reset the view
view::reset();
}