Move glfwGetMonitorWorkarea test to monitors

This moves the test use of glfwGetMonitorWorkarea from the simple
example to the monitors test program.

Related to #1322.
This commit is contained in:
Doug Binks
2018-09-08 16:38:43 +02:00
committed by Camilla Löwy
parent be295ccbea
commit c733ab0a22
2 changed files with 5 additions and 3 deletions

View File

@@ -79,7 +79,6 @@ int main(void)
GLFWwindow* window;
GLuint vertex_buffer, vertex_shader, fragment_shader, program;
GLint mvp_location, vpos_location, vcol_location;
int workarea_x, workarea_y, workarea_width, workarea_height;
glfwSetErrorCallback(error_callback);
@@ -132,8 +131,6 @@ int main(void)
glVertexAttribPointer(vcol_location, 3, GL_FLOAT, GL_FALSE,
sizeof(vertices[0]), (void*) (sizeof(float) * 2));
glfwGetMonitorWorkarea(glfwGetPrimaryMonitor(), &workarea_x, &workarea_y, &workarea_width, &workarea_height);
printf("Monitor work area: %d, %d, %d, %d\n", workarea_x, workarea_y, workarea_width, workarea_height);
while (!glfwWindowShouldClose(window))
{
float ratio;