Update rcore.c

InitWindow title now works with web platform too.
This commit is contained in:
vitopigno 2023-08-03 14:52:46 +02:00 committed by GitHub
parent 251f4308f5
commit 8d52aa559c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)