Added zeroing of DEVMODE.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 742a577230
commit 296b0a39a0
  1. 1
      src/win32_monitor.c

@ -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;

Loading…
Cancel
Save