|
|
|
@ -170,6 +170,18 @@ void _glfwPlatformGetMonitorContentScale(_GLFWmonitor* monitor, |
|
|
|
|
*yscale = (float) monitor->wl.scale; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos, int *width, int *height) |
|
|
|
|
{ |
|
|
|
|
if (xpos) |
|
|
|
|
*xpos = monitor->wl.x; |
|
|
|
|
if (ypos) |
|
|
|
|
*ypos = monitor->wl.y; |
|
|
|
|
if (width) |
|
|
|
|
*width = monitor->modes[monitor->wl.currentMode].width; |
|
|
|
|
if (height) |
|
|
|
|
*height = monitor->modes[monitor->wl.currentMode].height; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found) |
|
|
|
|
{ |
|
|
|
|
*found = monitor->modeCount; |
|
|
|
|