From 8d52aa559cc8a0de82e65138ef8cce8becf03b68 Mon Sep 17 00:00:00 2001 From: vitopigno <103512727+VitusVeit@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:52:46 +0200 Subject: [PATCH] Update rcore.c InitWindow title now works with web platform too. --- src/rcore.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rcore.c b/src/rcore.c index c75d60ad0..344e851f3 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -4436,6 +4436,11 @@ static bool InitGraphicsDevice(int width, int height) return false; } +// glfwCreateWindow title doesn't work with emscripten. +#if defined(PLATFORM_WEB) + emscripten_set_window_title((CORE.Window.title != 0)? CORE.Window.title : " "); +#endif + // Set window callback events glfwSetWindowSizeCallback(CORE.Window.handle, WindowSizeCallback); // NOTE: Resizing not allowed by default! #if !defined(PLATFORM_WEB)