Lines Matching refs:dm
99 DEVMODEW dm; in _glfwSetVideoModeWin32() local
106 ZeroMemory(&dm, sizeof(dm)); in _glfwSetVideoModeWin32()
107 dm.dmSize = sizeof(DEVMODEW); in _glfwSetVideoModeWin32()
108 dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL | in _glfwSetVideoModeWin32()
110 dm.dmPelsWidth = best->width; in _glfwSetVideoModeWin32()
111 dm.dmPelsHeight = best->height; in _glfwSetVideoModeWin32()
112 dm.dmBitsPerPel = best->redBits + best->greenBits + best->blueBits; in _glfwSetVideoModeWin32()
113 dm.dmDisplayFrequency = best->refreshRate; in _glfwSetVideoModeWin32()
115 if (dm.dmBitsPerPel < 15 || dm.dmBitsPerPel >= 24) in _glfwSetVideoModeWin32()
116 dm.dmBitsPerPel = 32; in _glfwSetVideoModeWin32()
119 &dm, in _glfwSetVideoModeWin32()
262 DEVMODEW dm; in _glfwPlatformGetVideoModes() local
264 ZeroMemory(&dm, sizeof(DEVMODEW)); in _glfwPlatformGetVideoModes()
265 dm.dmSize = sizeof(DEVMODEW); in _glfwPlatformGetVideoModes()
267 if (!EnumDisplaySettingsW(monitor->win32.adapterName, modeIndex, &dm)) in _glfwPlatformGetVideoModes()
273 if (dm.dmBitsPerPel < 15) in _glfwPlatformGetVideoModes()
276 mode.width = dm.dmPelsWidth; in _glfwPlatformGetVideoModes()
277 mode.height = dm.dmPelsHeight; in _glfwPlatformGetVideoModes()
278 mode.refreshRate = dm.dmDisplayFrequency; in _glfwPlatformGetVideoModes()
279 _glfwSplitBPP(dm.dmBitsPerPel, in _glfwPlatformGetVideoModes()
298 &dm, in _glfwPlatformGetVideoModes()
330 DEVMODEW dm; in _glfwPlatformGetVideoMode() local
332 ZeroMemory(&dm, sizeof(DEVMODEW)); in _glfwPlatformGetVideoMode()
333 dm.dmSize = sizeof(DEVMODEW); in _glfwPlatformGetVideoMode()
335 EnumDisplaySettingsW(monitor->win32.adapterName, ENUM_CURRENT_SETTINGS, &dm); in _glfwPlatformGetVideoMode()
337 mode->width = dm.dmPelsWidth; in _glfwPlatformGetVideoMode()
338 mode->height = dm.dmPelsHeight; in _glfwPlatformGetVideoMode()
339 mode->refreshRate = dm.dmDisplayFrequency; in _glfwPlatformGetVideoMode()
340 _glfwSplitBPP(dm.dmBitsPerPel, in _glfwPlatformGetVideoMode()