aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/win.c b/src/win.c
index b90bce5..f5f674c 100644
--- a/src/win.c
+++ b/src/win.c
@@ -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;