mirror of https://github.com/godotengine/godot
Silence warnings about DisplayServer icons on iOS and visionOS
Setting window icons is not supported on iOS or visionOS, but there is no concept of window icons on those platforms anyway.
This commit is contained in:
parent
b15a13eed3
commit
6de36fe6b2
|
|
@ -230,4 +230,7 @@ public:
|
|||
|
||||
void resize_window(CGSize size);
|
||||
virtual void swap_buffers() override {}
|
||||
|
||||
virtual void set_native_icon(const String &p_filename) override;
|
||||
virtual void set_icon(const Ref<Image> &p_icon) override;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -817,3 +817,11 @@ DisplayServer::VSyncMode DisplayServerAppleEmbedded::window_get_vsync_mode(Windo
|
|||
#endif
|
||||
return DisplayServer::VSYNC_ENABLED;
|
||||
}
|
||||
|
||||
void DisplayServerAppleEmbedded::set_native_icon(const String &p_filename) {
|
||||
// Not supported on Apple embedded platforms.
|
||||
}
|
||||
|
||||
void DisplayServerAppleEmbedded::set_icon(const Ref<Image> &p_icon) {
|
||||
// Not supported on Apple embedded platforms.
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue