From a6f6bd85f982f7b24b71238de302bc534e3d4658 Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 23 Mar 2015 22:07:03 -0700 Subject: [PATCH] fixed build error on OSX from new WM code --- platform/osx/os_osx.h | 2 ++ platform/osx/os_osx.mm | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/platform/osx/os_osx.h b/platform/osx/os_osx.h index 24f7115938f..8f121b7dd5b 100644 --- a/platform/osx/os_osx.h +++ b/platform/osx/os_osx.h @@ -133,6 +133,8 @@ public: virtual Point2 get_mouse_pos() const; virtual int get_mouse_button_state() const; virtual void set_window_title(const String& p_title); + + virtual Size2 get_window_size() const; virtual void set_icon(const Image& p_icon); diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 1c0d1f9991b..55ef6c15167 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1245,6 +1245,10 @@ void OS_OSX::get_fullscreen_mode_list(List *p_list,int p_screen) cons } +Size2 OS_OSX::get_window_size() const { + return Vector2(current_videomode.width, current_videomode.height); +} + void OS_OSX::move_window_to_foreground() { [window_object orderFrontRegardless];