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.
This commit is contained in:
A. Tombs 2016-06-06 16:12:53 +01:00
parent f6ec835599
commit c1259aad8f

View File

@ -43,6 +43,9 @@ static GLfloat gamma_value = 1.0f;
static void usage(void)
{
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)