diff options
Diffstat (limited to 'src/client/video.cc')
-rw-r--r-- | src/client/video.cc | 7 |
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(); } |