aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-04-22 16:21:10 -0400
committerDavid Robillard <d@drobilla.net>2022-04-23 21:18:38 -0400
commitadbf9ead293375855da61fecd695cbb6045c5639 (patch)
tree98c16cb1dff723c5adc982f44bb22d3838b170c6 /src
parent653b961b4b5533322655e424e9a53df0e8972d6c (diff)
downloadpugl-adbf9ead293375855da61fecd695cbb6045c5639.tar.gz
pugl-adbf9ead293375855da61fecd695cbb6045c5639.tar.bz2
pugl-adbf9ead293375855da61fecd695cbb6045c5639.zip
Windows: Avoid initialization warning
Diffstat (limited to 'src')
-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;