Browse Source

Merge pull request #1563 from romulox-x/ios_wm_fixes

fixed iphone build with new window management changes
Juan Linietsky 10 năm trước cách đây
mục cha
commit
f35315fee2
2 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 5 0
      platform/iphone/os_iphone.cpp
  2. 2 0
      platform/iphone/os_iphone.h

+ 5 - 0
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;

+ 2 - 0
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;