Update rcore.c
InitWindow title now works with web platform too.
This commit is contained in:
parent
251f4308f5
commit
8d52aa559c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user