Lines Matching defs:monitor

34 // The the sole (fake) video mode of our (sole) fake monitor
56 _GLFWmonitor* monitor = _glfwAllocMonitor("Null SuperNoop 0",
59 _glfwInputMonitor(monitor, GLFW_CONNECTED, _GLFW_INSERT_FIRST);
66 void _glfwFreeMonitorNull(_GLFWmonitor* monitor)
68 _glfwFreeGammaArrays(&monitor->null.ramp);
71 void _glfwGetMonitorPosNull(_GLFWmonitor* monitor, int* xpos, int* ypos)
79 void _glfwGetMonitorContentScaleNull(_GLFWmonitor* monitor,
88 void _glfwGetMonitorWorkareaNull(_GLFWmonitor* monitor,
104 GLFWvidmode* _glfwGetVideoModesNull(_GLFWmonitor* monitor, int* found)
112 GLFWbool _glfwGetVideoModeNull(_GLFWmonitor* monitor, GLFWvidmode* mode)
118 GLFWbool _glfwGetGammaRampNull(_GLFWmonitor* monitor, GLFWgammaramp* ramp)
120 if (!monitor->null.ramp.size)
124 _glfwAllocGammaArrays(&monitor->null.ramp, 256);
126 for (i = 0; i < monitor->null.ramp.size; i++)
130 value = i / (float) (monitor->null.ramp.size - 1);
134 monitor->null.ramp.red[i] = (unsigned short) value;
135 monitor->null.ramp.green[i] = (unsigned short) value;
136 monitor->null.ramp.blue[i] = (unsigned short) value;
140 _glfwAllocGammaArrays(ramp, monitor->null.ramp.size);
141 memcpy(ramp->red, monitor->null.ramp.red, sizeof(short) * ramp->size);
142 memcpy(ramp->green, monitor->null.ramp.green, sizeof(short) * ramp->size);
143 memcpy(ramp->blue, monitor->null.ramp.blue, sizeof(short) * ramp->size);
147 void _glfwSetGammaRampNull(_GLFWmonitor* monitor, const GLFWgammaramp* ramp)
149 if (monitor->null.ramp.size != ramp->size)
156 memcpy(monitor->null.ramp.red, ramp->red, sizeof(short) * ramp->size);
157 memcpy(monitor->null.ramp.green, ramp->green, sizeof(short) * ramp->size);
158 memcpy(monitor->null.ramp.blue, ramp->blue, sizeof(short) * ramp->size);