|
|
@ -197,13 +197,14 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, |
|
|
|
window->videoMode.blueBits = fbconfig.blueBits; |
|
|
|
window->videoMode.blueBits = fbconfig.blueBits; |
|
|
|
window->videoMode.refreshRate = _glfw.hints.refreshRate; |
|
|
|
window->videoMode.refreshRate = _glfw.hints.refreshRate; |
|
|
|
|
|
|
|
|
|
|
|
window->monitor = (_GLFWmonitor*) monitor; |
|
|
|
window->monitor = (_GLFWmonitor*) monitor; |
|
|
|
window->resizable = wndconfig.resizable; |
|
|
|
window->resizable = wndconfig.resizable; |
|
|
|
window->decorated = wndconfig.decorated; |
|
|
|
window->decorated = wndconfig.decorated; |
|
|
|
window->autoIconify = wndconfig.autoIconify; |
|
|
|
window->autoIconify = wndconfig.autoIconify; |
|
|
|
window->floating = wndconfig.floating; |
|
|
|
window->floating = wndconfig.floating; |
|
|
|
window->focusOnShow = wndconfig.focusOnShow; |
|
|
|
window->focusOnShow = wndconfig.focusOnShow; |
|
|
|
window->cursorMode = GLFW_CURSOR_NORMAL; |
|
|
|
window->mousePassthrough = wndconfig.mousePassthrough; |
|
|
|
|
|
|
|
window->cursorMode = GLFW_CURSOR_NORMAL; |
|
|
|
|
|
|
|
|
|
|
|
window->minwidth = GLFW_DONT_CARE; |
|
|
|
window->minwidth = GLFW_DONT_CARE; |
|
|
|
window->minheight = GLFW_DONT_CARE; |
|
|
|
window->minheight = GLFW_DONT_CARE; |
|
|
@ -908,7 +909,13 @@ GLFWAPI void glfwSetWindowAttrib(GLFWwindow* handle, int attrib, int value) |
|
|
|
else if (attrib == GLFW_FOCUS_ON_SHOW) |
|
|
|
else if (attrib == GLFW_FOCUS_ON_SHOW) |
|
|
|
window->focusOnShow = value; |
|
|
|
window->focusOnShow = value; |
|
|
|
else if (attrib == GLFW_MOUSE_PASSTHROUGH) |
|
|
|
else if (attrib == GLFW_MOUSE_PASSTHROUGH) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (window->mousePassthrough == value) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window->mousePassthrough = value; |
|
|
|
_glfwPlatformSetWindowMousePassthrough(window, value); |
|
|
|
_glfwPlatformSetWindowMousePassthrough(window, value); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
_glfwInputError(GLFW_INVALID_ENUM, "Invalid window attribute 0x%08X", attrib); |
|
|
|
_glfwInputError(GLFW_INVALID_ENUM, "Invalid window attribute 0x%08X", attrib); |
|
|
|
} |
|
|
|
} |
|
|
|