Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Renamed monitor test program.
Browse files Browse the repository at this point in the history
  • Loading branch information
elmindreda committed Mar 15, 2015
1 parent 4688820 commit d79beb9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ tests/gamma
tests/glfwinfo
tests/iconify
tests/joysticks
tests/modes
tests/monitors
tests/peter
tests/reopen
tests/sharing
Expand Down
2 changes: 1 addition & 1 deletion docs/monitor.dox
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ video mode, describes the viewports that the connected monitors provide into the
virtual desktop that spans them.

To see how GLFW views your monitor setup and its available video modes, run the
`modes` test program.
`monitors` test program.


@subsection monitor_monitors Retrieving monitors
Expand Down
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ add_executable(gamma gamma.c ${GETOPT})
add_executable(glfwinfo glfwinfo.c ${GETOPT})
add_executable(iconify iconify.c ${GETOPT})
add_executable(joysticks joysticks.c)
add_executable(modes modes.c ${GETOPT})
add_executable(monitors monitors.c ${GETOPT})
add_executable(peter peter.c)
add_executable(reopen reopen.c)
add_executable(cursor cursor.c)
Expand Down Expand Up @@ -62,7 +62,7 @@ target_link_libraries(threads "${CMAKE_THREAD_LIBS_INIT}" "${RT_LIBRARY}")

set(WINDOWS_BINARIES accuracy empty sharing tearing threads title windows cursoranim)
set(CONSOLE_BINARIES clipboard defaults events fsaa gamma glfwinfo
iconify joysticks modes peter reopen cursor)
iconify joysticks monitors peter reopen cursor)

set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES
FOLDER "GLFW3/Tests")
Expand Down
9 changes: 5 additions & 4 deletions tests/modes.c → tests/monitors.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//========================================================================
// Video mode test
// Monitor information tool
// Copyright (c) Camilla Berglund <elmindreda@elmindreda.org>
//
// This software is provided 'as-is', without any express or implied
Expand All @@ -23,7 +23,8 @@
//
//========================================================================
//
// This test enumerates or verifies video modes
// This test prints monitor and video mode information or verifies video
// modes
//
//========================================================================

Expand All @@ -43,8 +44,8 @@ enum Mode

static void usage(void)
{
printf("Usage: modes [-t]\n");
printf(" modes -h\n");
printf("Usage: monitors [-t]\n");
printf(" monitors -h\n");
}

static const char* format_mode(const GLFWvidmode* mode)
Expand Down

0 comments on commit d79beb9

Please sign in to comment.