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:
Hugo Locurcio
2024-07-19 18:46:10 +02:00
parent b15a13eed3
commit 6de36fe6b2
2 changed files with 11 additions and 0 deletions

View File

@ -230,4 +230,7 @@ public:
void resize_window(CGSize size); void resize_window(CGSize size);
virtual void swap_buffers() override {} 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;
}; };

View File

@ -817,3 +817,11 @@ DisplayServer::VSyncMode DisplayServerAppleEmbedded::window_get_vsync_mode(Windo
#endif #endif
return DisplayServer::VSYNC_ENABLED; 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.
}