diff options
author | David Robillard <d@drobilla.net> | 2022-04-22 16:21:10 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-04-23 21:18:38 -0400 |
commit | adbf9ead293375855da61fecd695cbb6045c5639 (patch) | |
tree | 98c16cb1dff723c5adc982f44bb22d3838b170c6 /src | |
parent | 653b961b4b5533322655e424e9a53df0e8972d6c (diff) | |
download | pugl-adbf9ead293375855da61fecd695cbb6045c5639.tar.gz pugl-adbf9ead293375855da61fecd695cbb6045c5639.tar.bz2 pugl-adbf9ead293375855da61fecd695cbb6045c5639.zip |
Windows: Avoid initialization warning
Diffstat (limited to 'src')
-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; |