summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-07-24 18:20:37 +0200
committerRay <[email protected]>2020-07-24 18:20:37 +0200
commitb5eb104b08ed9983b1294d203d06d0141622f92c (patch)
treeee61112bf17439839b6157531ab92fd0c43dee10 /src/core.c
parent14d37464adecd4d29504ff9f11702a58df2de7da (diff)
downloadraylib-b5eb104b08ed9983b1294d203d06d0141622f92c.tar.gz
raylib-b5eb104b08ed9983b1294d203d06d0141622f92c.zip
Consider empty title for window #1323
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 54e422c4..124b4d97 100644
--- a/src/core.c
+++ b/src/core.c
@@ -621,7 +621,7 @@ void InitWindow(int width, int height, const char *title)
TRACELOG(LOG_INFO, "Initializing raylib %s", RAYLIB_VERSION);
- CORE.Window.title = title;
+ if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title;
// Initialize required global values different than 0
CORE.Input.Keyboard.exitKey = KEY_ESCAPE;
@@ -2823,7 +2823,7 @@ static bool InitGraphicsDevice(int width, int height)
// HighDPI monitors are properly considered in a following similar function: SetupViewport()
SetupFramebuffer(CORE.Window.display.width, CORE.Window.display.height);
- CORE.Window.handle = glfwCreateWindow(CORE.Window.display.width, CORE.Window.display.height, CORE.Window.title, glfwGetPrimaryMonitor(), NULL);
+ CORE.Window.handle = glfwCreateWindow(CORE.Window.display.width, CORE.Window.display.height, (CORE.Window.title != 0)? CORE.Window.title : " ", glfwGetPrimaryMonitor(), NULL);
// NOTE: Full-screen change, not working properly...
//glfwSetWindowMonitor(CORE.Window.handle, glfwGetPrimaryMonitor(), 0, 0, CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE);
@@ -2831,7 +2831,7 @@ static bool InitGraphicsDevice(int width, int height)
else
{
// No-fullscreen window creation
- CORE.Window.handle = glfwCreateWindow(CORE.Window.screen.width, CORE.Window.screen.height, CORE.Window.title, NULL, NULL);
+ CORE.Window.handle = glfwCreateWindow(CORE.Window.screen.width, CORE.Window.screen.height, (CORE.Window.title != 0)? CORE.Window.title : " ", NULL, NULL);
if (CORE.Window.handle)
{