mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Merge pull request #1565 from romulox-x/osx_wm_fix
fixed build error on OSX from new WM code
This commit is contained in:
commit
ba194115bc
@ -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);
|
||||
|
||||
|
@ -1245,6 +1245,10 @@ void OS_OSX::get_fullscreen_mode_list(List<VideoMode> *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];
|
||||
|
Loading…
Reference in New Issue
Block a user