mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
Update query for work area on Windows
This commit is contained in:
parent
0403eed963
commit
a24fdf27f9
@ -122,6 +122,7 @@ information on what to include when reporting a bug.
|
||||
|
||||
## Changelog
|
||||
|
||||
- Added `glfwGetMonitorWorkarea` function for querying the monitor work area
|
||||
- Added `glfwGetKeyScancode` function that allows retrieving platform dependent
|
||||
scancodes for keys (#830)
|
||||
- Added `glfwSetWindowMaximizeCallback` and `GLFWwindowmaximizefun` for
|
||||
|
@ -360,6 +360,10 @@ void _glfwPlatformGetMonitorPos(_GLFWmonitor* monitor, int* xpos, int* ypos)
|
||||
*ypos = (int) bounds.origin.y;
|
||||
}
|
||||
|
||||
void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos, int *width, int *height)
|
||||
{
|
||||
}
|
||||
|
||||
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count)
|
||||
{
|
||||
CFArrayRef modes;
|
||||
|
@ -121,6 +121,10 @@ static void FillInRGBBitsFromPixelFormat(GLFWvidmode* mode, const MirPixelFormat
|
||||
}
|
||||
}
|
||||
|
||||
void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos, int *width, int *height)
|
||||
{
|
||||
}
|
||||
|
||||
GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found)
|
||||
{
|
||||
int i;
|
||||
|
@ -295,6 +295,7 @@ static BOOL CALLBACK MonitorEnumProc(HMONITOR hMonitor, HDC hdcMonitor, LPRECT l
|
||||
{
|
||||
RECT *workarea = (RECT *)dwData;
|
||||
MONITORINFO monitorInfo;
|
||||
monitorInfo.cbSize = sizeof(MONITORINFO);
|
||||
GetMonitorInfo(hMonitor, &monitorInfo);
|
||||
workarea->left = monitorInfo.rcWork.left;
|
||||
workarea->top = monitorInfo.rcWork.top;
|
||||
|
Loading…
Reference in New Issue
Block a user