diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c4db1a57..55862fac 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -21,7 +21,6 @@ add_executable(gamma gamma.c getopt.c) add_executable(glfwinfo glfwinfo.c getopt.c) add_executable(iconify iconify.c getopt.c) add_executable(joysticks joysticks.c) -add_executable(listmodes listmodes.c) add_executable(modes modes.c getopt.c) add_executable(peter peter.c) add_executable(reopen reopen.c) @@ -43,7 +42,7 @@ set_target_properties(windows PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "Windows") set(WINDOWS_BINARIES accuracy sharing tearing title windows) set(CONSOLE_BINARIES clipboard defaults events fsaa fsfocus gamma glfwinfo - iconify joysticks listmodes modes peter reopen) + iconify joysticks modes peter reopen) if (MSVC) # Tell MSVC to use main instead of WinMain for Windows subsystem executables diff --git a/tests/listmodes.c b/tests/listmodes.c deleted file mode 100644 index a4648ef6..00000000 --- a/tests/listmodes.c +++ /dev/null @@ -1,47 +0,0 @@ -//======================================================================== -// This is a small test application for GLFW. -// The program lists all available fullscreen video modes. -//======================================================================== - -#include - -#include -#include - -static void print_mode(GLFWvidmode* mode) -{ - printf("%i x %i x %i (%i %i %i)\n", - mode->width, mode->height, - mode->redBits + mode->greenBits + mode->blueBits, - mode->redBits, mode->greenBits, mode->blueBits); -} - -int main(void) -{ - GLFWvidmode dtmode, modes[400]; - int modecount, i; - - if (!glfwInit()) - { - fprintf(stderr, "Failed to initialize GLFW: %s\n", glfwErrorString(glfwGetError())); - exit(EXIT_FAILURE); - } - - // Show desktop video mode - glfwGetDesktopMode(&dtmode); - printf("Desktop mode: "); - print_mode(&dtmode); - - // List available video modes - modecount = glfwGetVideoModes(modes, sizeof(modes) / sizeof(GLFWvidmode)); - printf("Available modes:\n"); - for (i = 0; i < modecount; i++) - { - printf("%3i: ", i); - print_mode(modes + i); - } - - glfwTerminate(); - exit(EXIT_SUCCESS); -} -