diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-03-23 23:09:03 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-03-23 23:09:03 -0300 |
commit | f35315fee24ade08a48451a6a596df60fa5ea9cb (patch) | |
tree | 5ef4145be78cf39a5389431573d06879e1f9ca5b /platform/iphone | |
parent | 3cf9490c46fdcc434cdfddf9dfd5a8e673409f0f (diff) | |
parent | e3957e32deb80db1200082a8d6b4e429bbdbb4f4 (diff) |
Merge pull request #1563 from romulox-x/ios_wm_fixes
fixed iphone build with new window management changes
Diffstat (limited to 'platform/iphone')
-rw-r--r-- | platform/iphone/os_iphone.cpp | 5 | ||||
-rw-r--r-- | platform/iphone/os_iphone.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/platform/iphone/os_iphone.cpp b/platform/iphone/os_iphone.cpp index aee5f76684..06b48318ec 100644 --- a/platform/iphone/os_iphone.cpp +++ b/platform/iphone/os_iphone.cpp @@ -474,6 +474,11 @@ String OSIPhone::get_name() { return "iOS"; }; +Size2 OSIPhone::get_window_size() const { + + return Vector2(video_mode.width, video_mode.height); +} + bool OSIPhone::has_touchscreen_ui_hint() const { return true; diff --git a/platform/iphone/os_iphone.h b/platform/iphone/os_iphone.h index cb294d07eb..2585a26479 100644 --- a/platform/iphone/os_iphone.h +++ b/platform/iphone/os_iphone.h @@ -167,6 +167,8 @@ public: virtual void hide_virtual_keyboard(); virtual void set_cursor_shape(CursorShape p_shape); + + virtual Size2 get_window_size() const; virtual bool has_touchscreen_ui_hint() const; |