mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Add explanation of parameters to gamma test
Unlike similar test programs (e.g. tearing.c), the gamma test does not explain the meanings of the optional parameters `h` and `f`. This patch adds these explanations to the usage text. Closes #775.
This commit is contained in:
parent
407385dc72
commit
d8c278bf52
@ -43,6 +43,9 @@ static GLfloat gamma_value = 1.0f;
|
|||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
printf("Usage: gamma [-h] [-f]\n");
|
printf("Usage: gamma [-h] [-f]\n");
|
||||||
|
printf("Options:\n");
|
||||||
|
printf(" -f create full screen window\n");
|
||||||
|
printf(" -h show this help\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_gamma(GLFWwindow* window, float value)
|
static void set_gamma(GLFWwindow* window, float value)
|
||||||
|
Loading…
Reference in New Issue
Block a user