Added zeroing of DEVMODE.

This commit is contained in:
Camilla Berglund 2013-06-09 11:45:51 +02:00
parent 742a577230
commit 296b0a39a0

View File

@ -62,6 +62,7 @@ GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired)
if (_glfwCompareVideoModes(&current, best) == 0)
return GL_TRUE;
ZeroMemory(&dm, sizeof(dm));
dm.dmSize = sizeof(DEVMODE);
dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL |
DM_DISPLAYFREQUENCY;