From a2e47efd5ad6de8df3055310a3b82e2c0fc3953f Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Fri, 9 Feb 2024 17:09:17 +0000 Subject: [PATCH] Added glfwGetWindowTitle(window) to window.c test --- tests/window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/window.c b/tests/window.c index 83baff46..a75e7da5 100644 --- a/tests/window.c +++ b/tests/window.c @@ -71,7 +71,7 @@ int main(int argc, char** argv) glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1); - GLFWwindow* window = glfwCreateWindow(600, 600, "Window Features", NULL, NULL); + GLFWwindow* window = glfwCreateWindow(600, 630, "Window Features", NULL, NULL); if (!window) { glfwTerminate(); @@ -170,6 +170,8 @@ int main(int argc, char** argv) glfwSetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH, false); } + nk_labelf(nk, NK_TEXT_CENTERED, "Window Title: %s", glfwGetWindowTitle(window)); + nk_label(nk, "Press Enter in a text field to set value", NK_TEXT_CENTERED); nk_flags events;