aboutsummaryrefslogtreecommitdiff
path: root/core/bind
diff options
context:
space:
mode:
authorhurikhan2015-01-10 18:38:30 +0800
committerhurikhan2015-01-10 18:38:30 +0800
commit0d2ec19082e9ebff07ab1ab8e365e2db9ee3268b (patch)
tree4cbd68a88fcf4e473a1a6a55a3c316417dd31add /core/bind
parentcd90215ceca03b456aad761da935c92058b0da6a (diff)
downloadgodot-0d2ec19082e9ebff07ab1ab8e365e2db9ee3268b.tar.gz
godot-0d2ec19082e9ebff07ab1ab8e365e2db9ee3268b.tar.zst
godot-0d2ec19082e9ebff07ab1ab8e365e2db9ee3268b.zip
API change to set_fullscreen(enabled,screen)
Diffstat (limited to 'core/bind')
-rw-r--r--core/bind/core_bind.cpp6
-rw-r--r--core/bind/core_bind.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index 0d24486e9..62d93745a 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -176,8 +176,8 @@ bool _OS::is_video_mode_fullscreen(int p_screen) const {
}
-void _OS::set_fullscreen(bool p_fullscreen) {
- OS::get_singleton()->set_fullscreen(p_fullscreen);
+void _OS::set_fullscreen(bool p_enabled,int p_screen) {
+ OS::get_singleton()->set_fullscreen(p_enabled, p_screen);
}
bool _OS::is_fullscreen() const {
@@ -641,7 +641,7 @@ void _OS::_bind_methods() {
ObjectTypeDB::bind_method(_MD("get_fullscreen_mode_list","screen"),&_OS::get_fullscreen_mode_list,DEFVAL(0));
//MSC
- ObjectTypeDB::bind_method(_MD("set_fullscreen","fullscreen"),&_OS::set_fullscreen);
+ ObjectTypeDB::bind_method(_MD("set_fullscreen","enabled","screen"),&_OS::set_fullscreen,DEFVAL(0));
ObjectTypeDB::bind_method(_MD("is_fullscreen"),&_OS::is_fullscreen);
ObjectTypeDB::bind_method(_MD("set_iterations_per_second","iterations_per_second"),&_OS::set_iterations_per_second);
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h
index 97aff87bc..fedd03c3a 100644
--- a/core/bind/core_bind.h
+++ b/core/bind/core_bind.h
@@ -109,7 +109,7 @@ public:
Array get_fullscreen_mode_list(int p_screen=0) const;
//MSC
- void set_fullscreen(bool p_fullscreen);
+ void set_fullscreen(bool p_enabled, int p_screen=0);
bool is_fullscreen() const;
Error native_video_play(String p_path, float p_volume, String p_audio_track, String p_subtitle_track);