From 77fae536a990f0bc1fe2856f548b7941b5960703 Mon Sep 17 00:00:00 2001 From: Mike Interlandi Date: Mon, 3 Feb 2025 12:11:02 -0500 Subject: [PATCH] move fullscreen check in tests/window with other glfwGetWindowAttrib --- tests/window.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/window.c b/tests/window.c index 8d83d100..d67e10fc 100644 --- a/tests/window.c +++ b/tests/window.c @@ -190,15 +190,6 @@ int main(int argc, char** argv) glfwSetWindowAttrib(window, GLFW_MOUSE_PASSTHROUGH, false); } - if (nk_button_label(nk, "Is window fullscreen?")) { - int fullscreen = glfwGetWindowAttrib(window, GLFW_FULLSCREEN); - if (fullscreen) { - nk_label(nk, "Yes", NK_TEXT_CENTERED); - } else { - nk_label(nk, "No", NK_TEXT_CENTERED); - } - } - nk_label(nk, "Press Enter in a text field to set value", NK_TEXT_CENTERED); nk_flags events; @@ -450,6 +441,7 @@ int main(int argc, char** argv) nk_value_bool(nk, "Visible", glfwGetWindowAttrib(window, GLFW_VISIBLE)); nk_value_bool(nk, "Iconified", glfwGetWindowAttrib(window, GLFW_ICONIFIED)); nk_value_bool(nk, "Maximized", glfwGetWindowAttrib(window, GLFW_MAXIMIZED)); + nk_value_bool(nk, "Fullscreen", glfwGetWindowAttrib(window, GLFW_FULLSCREEN)); } nk_end(nk);