diff options
Diffstat (limited to 'src/win.c')
-rw-r--r-- | src/win.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -182,7 +182,8 @@ puglRealize(PuglView* view) } // Get refresh rate for resize draw timer - DEVMODEA devMode = {0}; + DEVMODEA devMode; + memset(&devMode, 0, sizeof(devMode)); EnumDisplaySettingsA(NULL, ENUM_CURRENT_SETTINGS, &devMode); view->hints[PUGL_REFRESH_RATE] = (int)devMode.dmDisplayFrequency; |