mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 12:18:51 -05:00
Clean up monitors tool output
This commit is contained in:
parent
d25248343e
commit
f71b55f83d
|
@ -109,13 +109,13 @@ static void list_modes(GLFWmonitor* monitor)
|
||||||
glfwGetMonitorName(monitor),
|
glfwGetMonitorName(monitor),
|
||||||
glfwGetPrimaryMonitor() == monitor ? "primary" : "secondary");
|
glfwGetPrimaryMonitor() == monitor ? "primary" : "secondary");
|
||||||
printf("Current mode: %s\n", format_mode(mode));
|
printf("Current mode: %s\n", format_mode(mode));
|
||||||
printf("Virtual position: %i %i\n", x, y);
|
printf("Virtual position: %i, %i\n", x, y);
|
||||||
printf("Content scale: %f %f\n", xscale, yscale);
|
printf("Content scale: %f x %f\n", xscale, yscale);
|
||||||
|
|
||||||
printf("Physical size: %i x %i mm (%0.2f dpi)\n",
|
printf("Physical size: %i x %i mm (%0.2f dpi at %i x %i)\n",
|
||||||
width_mm, height_mm, mode->width * 25.4f / width_mm);
|
width_mm, height_mm, mode->width * 25.4f / width_mm, mode->width, mode->height);
|
||||||
printf("Monitor work area: pos=(%d,%d) size=(%dx%d)\n",
|
printf("Monitor work area: %i x %i starting at %i, %i\n",
|
||||||
workarea_x, workarea_y, workarea_width, workarea_height);
|
workarea_width, workarea_height, workarea_x, workarea_y);
|
||||||
|
|
||||||
printf("Modes:\n");
|
printf("Modes:\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user